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

View File

@ -36,7 +36,7 @@ namespace test::game::iw4::menu::parsing::it
m_ignored_asset_lookup(),
m_context(m_zone, &m_creator_collection, &m_ignored_asset_lookup)
{
m_asset_creator = CreateMenuListLoader(*m_zone.GetMemory(), m_search_path);
m_asset_creator = CreateMenuListLoader(m_zone.Memory(), m_search_path);
}
void AddFile(std::string fileName, std::string data)
@ -51,8 +51,8 @@ namespace test::game::iw4::menu::parsing::it
Material* AddMaterial(const std::string& name)
{
auto* material = m_zone.GetMemory()->Alloc<Material>();
material->info.name = m_zone.GetMemory()->Dup(name.c_str());
auto* material = m_zone.Memory().Alloc<Material>();
material->info.name = m_zone.Memory().Dup(name.c_str());
m_context.AddAsset<AssetMaterial>(name, material);