mirror of
https://github.com/cemu-project/Cemu.git
synced 2024-12-28 18:51:52 +01:00
25 lines
492 B
C++
25 lines
492 B
C++
#include "SysAllocator.h"
|
|
|
|
void SysAllocatorContainer::Initialize()
|
|
{
|
|
for (SysAllocatorBase* sysAlloc : m_sysAllocList)
|
|
{
|
|
sysAlloc->Initialize();
|
|
}
|
|
}
|
|
|
|
void SysAllocatorContainer::PushSysAllocator(SysAllocatorBase* base)
|
|
{
|
|
m_sysAllocList.push_back(base);
|
|
}
|
|
|
|
SysAllocatorContainer& SysAllocatorContainer::GetInstance()
|
|
{
|
|
static SysAllocatorContainer s_instance;
|
|
return s_instance;
|
|
}
|
|
|
|
SysAllocatorBase::SysAllocatorBase()
|
|
{
|
|
SysAllocatorContainer::GetInstance().PushSysAllocator(this);
|
|
} |