Initial CGameAllocator stubs

This commit is contained in:
Phillip Stephens 2020-12-02 19:01:57 -08:00
parent aa400c7ff6
commit cdb4666b96
Signed by: Antidote
GPG Key ID: F8BEE4C83DACA60D
2 changed files with 24 additions and 1 deletions

View File

@ -23,4 +23,16 @@ u32 CGameAllocator::GetFreeBinEntryForSize(size_t len) {
}
bool CGameAllocator::Initialize() { return true; }
void* CGameAllocator::Alloc() { return nullptr; }
s32 CGameAllocator::Free(void* ptr) { return 0; }
void CGameAllocator::ReleaseAll() {}
void CGameAllocator::AllocSecondary() {}
void CGameAllocator::FreeSecondary() {}
void CGameAllocator::ReleaseAllSecondary() {}
void CGameAllocator::SetOutOfMemoryCallback() {}
void CGameAllocator::EnumAllocations() {}
SAllocInfo CGameAllocator::GetAllocInfo() { return SAllocInfo(); }
void CGameAllocator::sub80351138() {}
void CGameAllocator::GetMetrics() {}
} // namespace metaforce

View File

@ -64,7 +64,18 @@ class CGameAllocator : public IAllocator {
std::array<SGameMemInfo*, 16> x14_bins;
public:
bool Initialize(); // const COsContext& ctx);
bool Initialize() override; // const COsContext& ctx);
void* Alloc() override;
s32 Free(void* ptr) override;
void ReleaseAll() override;
void AllocSecondary() override;
void FreeSecondary() override;
void ReleaseAllSecondary() override;
void SetOutOfMemoryCallback() override;
void EnumAllocations() override;
SAllocInfo GetAllocInfo() override;
void sub80351138() override;
void GetMetrics() override;
};
} // namespace metaforce