2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-06-06 08:42:35 +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
committed by Jan Laupetin
parent 6acf19da6d
commit 7908549dc8
4 changed files with 8 additions and 8 deletions
@@ -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
@@ -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
+2 -2
View File
@@ -48,6 +48,7 @@
#include "Weapon/WeaponRawLoaderT6.h"
#include "ZBarrier/GdtLoaderZBarrierT6.h"
#include "ZBarrier/RawLoaderZBarrierT6.h"
#include "CustomMap/LoaderCustomMapT6.h"
#include <format>
#include <memory>
@@ -445,8 +446,7 @@ namespace T6
collection.AddSubAssetCreator(techset::CreateVertexShaderLoaderT6(memory, searchPath));
collection.AddSubAssetCreator(techset::CreatePixelShaderLoaderT6(memory, searchPath));
// The Custom Map Loader uses gfxworld as the starting asset
collection.AddAssetCreator(CreateCustomMapLoader(memory, searchPath, zone));
collection.AddAssetCreator(custom_map::CreateLoaderT6(memory, searchPath, zone));
}
} // namespace