2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-11-22 21:02:07 +00:00

Updated custom map objloading code to match new structure.

This commit is contained in:
LJW-Dev
2025-10-09 00:31:37 +08:00
parent ce2aec3ab7
commit 249e6426ff
4 changed files with 9 additions and 6 deletions

View File

@@ -53,10 +53,10 @@ namespace
};
} // namespace
namespace T6
namespace custom_map
{
std::unique_ptr<AssetCreator<AssetGfxWorld>> CreateCustomMapLoader(MemoryManager& memory, ISearchPath& searchPath, Zone& zone)
std::unique_ptr<AssetCreator<AssetGfxWorld>> CreateLoaderT6(MemoryManager& memory, ISearchPath& searchPath, Zone& zone)
{
return std::make_unique<CustomMapLoader>(memory, searchPath, zone);
}
} // namespace T6
} // namespace custom_map

View File

@@ -7,7 +7,7 @@
#include <memory>
namespace T6
namespace custom_map
{
std::unique_ptr<AssetCreator<AssetGfxWorld>> CreateCustomMapLoader(MemoryManager& memory, ISearchPath& searchPath, Zone& zone);
} // namespace T6
std::unique_ptr<AssetCreator<T6::AssetGfxWorld>> CreateLoaderT6(MemoryManager& memory, ISearchPath& searchPath, Zone& zone);
} // namespace custom_map

View File

@@ -42,6 +42,7 @@
#include "Weapon/WeaponRawLoaderT6.h"
#include "ZBarrier/GdtLoaderZBarrierT6.h"
#include "ZBarrier/RawLoaderZBarrierT6.h"
#include "CustomMap/LoaderCustomMapT6.h"
#include <format>
#include <memory>
@@ -439,6 +440,8 @@ namespace T6
// collection.AddAssetCreator(std::make_unique<AssetLoaderFootstepFxTable>(memory));
collection.AddAssetCreator(z_barrier::CreateRawLoaderT6(memory, searchPath, zone));
collection.AddAssetCreator(z_barrier::CreateGdtLoaderT6(memory, searchPath, gdt, zone));
collection.AddAssetCreator(custom_map::CreateLoaderT6(memory, searchPath, zone));
}
} // namespace