Fix missing file error in Content::GetAssetInfo

This commit is contained in:
2024-02-14 12:47:34 +01:00
parent 3958a4740f
commit ebcc864b06
+2
View File
@@ -277,6 +277,8 @@ bool Content::GetAssetInfo(const StringView& path, AssetInfo& info)
// Find asset in registry
if (Cache.FindAsset(path, info))
return true;
if (!FileSystem::FileExists(path))
return false;
PROFILE_CPU();
const auto extension = FileSystem::GetExtension(path).ToLower();