refactor: streamline IW4 asset loading

This commit is contained in:
Jan Laupetin
2025-08-05 01:14:20 +02:00
parent 81a67151b5
commit 6806337f46
49 changed files with 398 additions and 397 deletions
@@ -82,10 +82,10 @@ namespace
};
} // namespace
namespace IW4
namespace IW4::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 IW4
} // namespace IW4::raw_file
@@ -7,7 +7,7 @@
#include <memory>
namespace IW4
namespace IW4::raw_file
{
std::unique_ptr<AssetCreator<AssetRawFile>> CreateRawFileLoader(MemoryManager& memory, ISearchPath& searchPath);
} // namespace IW4
std::unique_ptr<AssetCreator<AssetRawFile>> CreateLoader(MemoryManager& memory, ISearchPath& searchPath);
} // namespace IW4::raw_file