Add asset loading states per zone for the usecase of saving loaded menus and menu functions

This commit is contained in:
Jan committed 2021-11-13 22:18:44 +01:00
1 parent b1e5fc70a6
commit 4552a4fe4a
14 files changed
+106 -2

No files matched your search

@@ -37,6 +37,8 @@ bool AssetLoaderMenuList::LoadFromRaw(const std::string& assetName, ISearchPath*
return std::move(foundFileToInclude.m_stream);
});
reader.IncludeZoneState(manager->GetAssetLoadingContext()->GetZoneAssetLoaderState<menu::MenuAssetZoneState>());
const auto menuFileResult = reader.ReadMenuFile();
if(menuFileResult)
{