2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-06-27 19:38:07 +00:00

refactor: make memory from zone a reference instead of ptr

This commit is contained in:
Jan
2025-05-02 11:42:17 +01:00
parent 9e940a6f53
commit 8b85cadb77
29 changed files with 78 additions and 78 deletions
+2 -2
View File
@@ -17,7 +17,7 @@ namespace
ISearchPath& searchPath,
ZoneAssetCreationStateContainer& zoneStates)
{
auto& memory = *zone.GetMemory();
auto& memory = zone.Memory();
collection.AddAssetCreator(CreateKeyValuePairsCompiler(memory, zone, zoneDefinition.m_zone_definition, zoneStates));
}
@@ -29,7 +29,7 @@ namespace
ZoneAssetCreationStateContainer& zoneStates,
IOutputPath& outDir)
{
auto& memory = *zone.GetMemory();
auto& memory = zone.Memory();
if (ImageIPakPostProcessor<AssetImage>::AppliesToZoneDefinition(zoneDefinition))
collection.AddAssetPostProcessor(std::make_unique<ImageIPakPostProcessor<AssetImage>>(zoneDefinition, searchPath, zoneStates, outDir));