mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-10 14:58:10 -05:00
Finalize menu assets after loading all assets
This commit is contained in:
@ -68,7 +68,7 @@ void ObjLoading::LoadIWDsInSearchPath(ISearchPath* searchPath)
|
||||
if (file->is_open())
|
||||
{
|
||||
auto iwd = std::make_unique<IWD>(path, std::move(file));
|
||||
|
||||
|
||||
if (iwd->Initialize())
|
||||
{
|
||||
IWD::Repository.AddContainer(std::move(iwd), searchPath);
|
||||
@ -106,3 +106,15 @@ bool ObjLoading::LoadAssetForZone(AssetLoadingContext* context, const asset_type
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
void ObjLoading::FinalizeAssetsForZone(AssetLoadingContext* context)
|
||||
{
|
||||
for (const auto* loader : OBJ_LOADERS)
|
||||
{
|
||||
if (loader->SupportsZone(context->m_zone))
|
||||
{
|
||||
loader->FinalizeAssetsForZone(context);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user