2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-11-26 22:42:06 +00:00

WIP: Finished updating BSP linker to use seperate files for each asset.

This commit is contained in:
LJW-Dev
2025-10-24 15:34:44 +08:00
parent 948ba5ba8b
commit 173565c7b3
5 changed files with 867 additions and 2005 deletions

View File

@@ -1,6 +1,8 @@
#include "LoaderBSP_T6.h"
#include "BSPCreator.h"
#include "CustomMapLinker.h"
#include "BSPUtil.h"
#include "Linker/BSPLinker.h"
//#include "CustomMapLinker.h"
namespace
{
@@ -27,17 +29,8 @@ namespace
if (bsp == nullptr)
return AssetCreationResult::Failure();
CustomMapLinker linker(m_memory, m_search_path, m_zone, context);
bool result = linker.linkCustomMap(bsp.get());
if (result)
{
auto gfxWorldAsset = context.LoadDependency<AssetGfxWorld>(bsp->bspName);
_ASSERT(gfxWorldAsset != nullptr);
return AssetCreationResult::Success(gfxWorldAsset);
}
else
return AssetCreationResult::Failure();
BSPLinker linker(m_memory, m_search_path, context);
return linker.linkBSP(bsp.get());
}
private: