mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-14 19:29:36 +01:00
Fix spamming startup error messages for projects without splash logo
This commit is contained in:
@@ -45,6 +45,7 @@ END TEMPLATE-->
|
||||
|
||||
* `ActorComponent` now has the `UnsavedComponentAttribute`
|
||||
* Previously it was unintentionally get serialized to yaml, which could result in NREs when deserializing.
|
||||
* Don't spam error messages on startup trying to draw splash logos for projects that don't have one.
|
||||
|
||||
### Other
|
||||
|
||||
|
||||
@@ -208,6 +208,9 @@ internal sealed class LoadingScreenManager : ILoadingScreenManager
|
||||
|
||||
private void DrawSplash(IRenderHandle handle, ref Vector2i startLocation, float scale)
|
||||
{
|
||||
if (string.IsNullOrEmpty(_splashLogo))
|
||||
return;
|
||||
|
||||
if (!_resourceCache.TryGetResource<TextureResource>(_splashLogo, out var textureResource))
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user