Start of project system

+ added Directory.IsEmpty
This commit is contained in:
Simon Lübeß
2023-07-30 13:23:34 +02:00
parent 14a802d057
commit df67f32399
6 changed files with 356 additions and 37 deletions
+7 -2
View File
@@ -361,8 +361,13 @@ class EditorContentManager : IContentManager
IAssetLoader assetLoader = GetAssetLoader(file);
// TODO: what are we supposed to do if we don't find a loader? Sure not crash...
Log.EngineLogger.AssertDebug(assetLoader != null);
// TODO: what are we supposed to do if we don't find a loader? Surely not crash...
//Log.EngineLogger.AssertDebug(assetLoader != null);
if (assetLoader == null)
{
Log.EngineLogger.Error($"No asset loader registered for asset {identifier}.");
return .Invalid;
}
Asset loadedAsset;