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

refactor: streamline IW3 asset loading

This commit is contained in:
Jan Laupetin
2025-08-05 01:22:39 +02:00
parent 6806337f46
commit 95a6a028ab
13 changed files with 41 additions and 39 deletions

View File

@@ -44,10 +44,10 @@ namespace
};
} // namespace
namespace IW3
namespace IW3::raw_file
{
std::unique_ptr<AssetCreator<AssetRawFile>> CreateRawFileLoader(MemoryManager& memory, ISearchPath& searchPath)
std::unique_ptr<AssetCreator<AssetRawFile>> CreateLoader(MemoryManager& memory, ISearchPath& searchPath)
{
return std::make_unique<RawFileLoader>(memory, searchPath);
}
} // namespace IW3
} // namespace IW3::raw_file

View File

@@ -7,7 +7,7 @@
#include <memory>
namespace IW3
namespace IW3::raw_file
{
std::unique_ptr<AssetCreator<AssetRawFile>> CreateRawFileLoader(MemoryManager& memory, ISearchPath& searchPath);
} // namespace IW3
std::unique_ptr<AssetCreator<AssetRawFile>> CreateLoader(MemoryManager& memory, ISearchPath& searchPath);
} // namespace IW3::raw_file