2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-09-05 16:27:27 +00:00

chore: fix loading and writing code for IW4

This commit is contained in:
Jan
2024-12-28 10:28:29 +01:00
parent a5873a301f
commit 9ae5aaa1db
10 changed files with 77 additions and 69 deletions

View File

@@ -1,6 +1,5 @@
#include "LoaderMaterialIW4.h"
#include "AssetLoaderTechniqueSet.h"
#include "AssetLoading/AbstractGdtEntryReader.h"
#include "Game/IW4/CommonIW4.h"
#include "Game/IW4/IW4.h"
@@ -1321,7 +1320,12 @@ namespace
class MaterialLoader final : public AssetCreator<AssetMaterial>
{
public:
MaterialLoader(MemoryManager& memory, ISearchPath& searchPath);
MaterialLoader(MemoryManager& memory, ISearchPath& searchPath, IGdtQueryable& gdt)
: m_memory(memory),
m_search_path(m_search_path),
m_gdt(gdt)
{
}
AssetCreationResult CreateAsset(const std::string& assetName, AssetCreationContext& context) override
{