Fix spamming startup error messages for projects without splash logo

This commit is contained in:
PJB3005
2025-11-16 15:01:46 +01:00
parent b267cd6fb4
commit b8ff394f73
2 changed files with 4 additions and 0 deletions

View File

@@ -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

View File

@@ -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;