Fix missing file error in Content::GetAssetInfo
This commit is contained in:
@@ -277,6 +277,8 @@ bool Content::GetAssetInfo(const StringView& path, AssetInfo& info)
|
|||||||
// Find asset in registry
|
// Find asset in registry
|
||||||
if (Cache.FindAsset(path, info))
|
if (Cache.FindAsset(path, info))
|
||||||
return true;
|
return true;
|
||||||
|
if (!FileSystem::FileExists(path))
|
||||||
|
return false;
|
||||||
PROFILE_CPU();
|
PROFILE_CPU();
|
||||||
|
|
||||||
const auto extension = FileSystem::GetExtension(path).ToLower();
|
const auto extension = FileSystem::GetExtension(path).ToLower();
|
||||||
|
|||||||
Reference in New Issue
Block a user