Fix asset paths to be from project rather than packages

This commit is contained in:
Wojtek Figat
2021-04-29 23:21:59 +02:00
parent 05f919c50f
commit fd595863dc
5 changed files with 25 additions and 5 deletions

View File

@@ -233,6 +233,11 @@ bool AssetsCache::Save(const StringView& path, const Registry& entries, const Pa
return false;
}
const String& AssetsCache::GetAssetPath(const Guid& id) const
{
return _registry[id].Info.Path;
}
bool AssetsCache::FindAsset(const StringView& path, AssetInfo& info)
{
PROFILE_CPU();