mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-10-14 07:41:27 +00:00
refactor: remove MemoryManager create method usages
This commit is contained in:
11 files changed
+13
-89
No files matched your search
@@ -51,7 +51,7 @@ namespace test::game::iw4::menu::parsing::it
|
||||
|
||||
Material* AddMaterial(const std::string& name)
|
||||
{
|
||||
auto* material = m_zone.GetMemory()->Create<Material>();
|
||||
auto* material = m_zone.GetMemory()->Alloc<Material>();
|
||||
material->info.name = m_zone.GetMemory()->Dup(name.c_str());
|
||||
|
||||
m_context.AddAsset<AssetMaterial>(name, material);
|
||||
|
||||
Reference in new issue
Block a user