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

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

View File

@ -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)
{