mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-14 18:58:29 +12:00
Add all the files
This commit is contained in:
parent
e3db07a16a
commit
d60742f52b
1445 changed files with 430238 additions and 0 deletions
25
src/Common/SysAllocator.cpp
Normal file
25
src/Common/SysAllocator.cpp
Normal file
|
@ -0,0 +1,25 @@
|
|||
#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);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue