mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-11-08 01:31:59 +00:00
refactor: generate combined asset loader/writer/marker headers per variant
This commit is contained in:
49 files changed
+408
-368
No files matched your search
@@ -1,6 +1,6 @@
|
||||
#include "ContentLoaderIW3.h"
|
||||
|
||||
#include "Game/IW3/AssetLoaderIW3.h"
|
||||
#include "Game/IW3/AssetLoaderIW3_pc.h"
|
||||
#include "Game/IW3/IW3.h"
|
||||
#include "Loading/Exception/UnsupportedAssetTypeException.h"
|
||||
|
||||
@@ -44,7 +44,7 @@ void ContentLoader::LoadXAsset(const bool atStreamStart) const
|
||||
#define LOAD_ASSET(type_index, typeName, headerEntry) \
|
||||
case type_index: \
|
||||
{ \
|
||||
Loader_##typeName loader(m_zone, m_stream); \
|
||||
Loader_##typeName##_pc loader(m_zone, m_stream); \
|
||||
loader.Load(&varXAsset->header.headerEntry); \
|
||||
break; \
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "ContentLoaderIW4.h"
|
||||
|
||||
#include "Game/IW4/AssetLoaderIW4.h"
|
||||
#include "Game/IW4/AssetLoaderIW4_pc32.h"
|
||||
#include "Game/IW4/IW4.h"
|
||||
#include "Loading/Exception/UnsupportedAssetTypeException.h"
|
||||
|
||||
@@ -44,7 +44,7 @@ void ContentLoader::LoadXAsset(const bool atStreamStart) const
|
||||
#define LOAD_ASSET(type_index, typeName, headerEntry) \
|
||||
case type_index: \
|
||||
{ \
|
||||
Loader_##typeName loader(m_zone, m_stream); \
|
||||
Loader_##typeName##_pc32 loader(m_zone, m_stream); \
|
||||
loader.Load(&varXAsset->header.headerEntry); \
|
||||
break; \
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "ContentLoaderIW5.h"
|
||||
|
||||
#include "Game/IW5/AssetLoaderIW5.h"
|
||||
#include "Game/IW5/AssetLoaderIW5_pc32.h"
|
||||
#include "Game/IW5/IW5.h"
|
||||
#include "Loading/Exception/UnsupportedAssetTypeException.h"
|
||||
|
||||
@@ -44,7 +44,7 @@ void ContentLoader::LoadXAsset(const bool atStreamStart) const
|
||||
#define LOAD_ASSET(type_index, typeName, headerEntry) \
|
||||
case type_index: \
|
||||
{ \
|
||||
Loader_##typeName loader(m_zone, m_stream); \
|
||||
Loader_##typeName##_pc32 loader(m_zone, m_stream); \
|
||||
loader.Load(&varXAsset->header.headerEntry); \
|
||||
break; \
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "ContentLoaderQOS.h"
|
||||
|
||||
#include "Game/QOS/AssetLoaderQOS.h"
|
||||
#include "Game/QOS/AssetLoaderQOS_pc.h"
|
||||
#include "Loading/Exception/UnsupportedAssetTypeException.h"
|
||||
|
||||
#include <cassert>
|
||||
@@ -43,7 +43,7 @@ void ContentLoader::LoadXAsset(const bool atStreamStart) const
|
||||
#define LOAD_ASSET(type_index, typeName, headerEntry) \
|
||||
case type_index: \
|
||||
{ \
|
||||
Loader_##typeName loader(m_zone, m_stream); \
|
||||
Loader_##typeName##_pc loader(m_zone, m_stream); \
|
||||
loader.Load(&varXAsset->header.headerEntry); \
|
||||
break; \
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "ContentLoaderT4.h"
|
||||
|
||||
#include "Game/T4/AssetLoaderT4.h"
|
||||
#include "Game/T4/AssetLoaderT4_pc.h"
|
||||
#include "Game/T4/T4.h"
|
||||
#include "Loading/Exception/UnsupportedAssetTypeException.h"
|
||||
|
||||
@@ -44,7 +44,7 @@ void ContentLoader::LoadXAsset(const bool atStreamStart) const
|
||||
#define LOAD_ASSET(type_index, typeName, headerEntry) \
|
||||
case type_index: \
|
||||
{ \
|
||||
Loader_##typeName loader(m_zone, m_stream); \
|
||||
Loader_##typeName##_pc loader(m_zone, m_stream); \
|
||||
loader.Load(&varXAsset->header.headerEntry); \
|
||||
break; \
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "ContentLoaderT5.h"
|
||||
|
||||
#include "Game/T5/AssetLoaderT5.h"
|
||||
#include "Game/T5/AssetLoaderT5_pc.h"
|
||||
#include "Game/T5/T5.h"
|
||||
#include "Loading/Exception/UnsupportedAssetTypeException.h"
|
||||
|
||||
@@ -44,7 +44,7 @@ void ContentLoader::LoadXAsset(const bool atStreamStart) const
|
||||
#define LOAD_ASSET(type_index, typeName, headerEntry) \
|
||||
case type_index: \
|
||||
{ \
|
||||
Loader_##typeName loader(m_zone, m_stream); \
|
||||
Loader_##typeName##_pc loader(m_zone, m_stream); \
|
||||
loader.Load(&varXAsset->header.headerEntry); \
|
||||
break; \
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "ContentLoaderT6.h"
|
||||
|
||||
#include "Game/T6/AssetLoaderT6.h"
|
||||
#include "Game/T6/AssetLoaderT6_pc.h"
|
||||
#include "Game/T6/T6.h"
|
||||
#include "Loading/Exception/UnsupportedAssetTypeException.h"
|
||||
|
||||
@@ -44,7 +44,7 @@ void ContentLoader::LoadXAsset(const bool atStreamStart) const
|
||||
#define LOAD_ASSET(type_index, typeName, headerEntry) \
|
||||
case type_index: \
|
||||
{ \
|
||||
Loader_##typeName loader(m_zone, m_stream); \
|
||||
Loader_##typeName##_pc loader(m_zone, m_stream); \
|
||||
loader.Load(&varXAsset->header.headerEntry); \
|
||||
break; \
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user