mirror of https://github.com/AxioDL/metaforce.git
Initial CGameAllocator stubs
This commit is contained in:
parent
aa400c7ff6
commit
cdb4666b96
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue