m_allocator

This commit is contained in:
robojumper
2024-05-30 08:43:50 +02:00
parent 71f3416cb5
commit 2adbfa2736
6 changed files with 129 additions and 19 deletions
+4 -4
View File
@@ -10,7 +10,7 @@ public:
/* 0x08 */ virtual ~mAllocator_c();
/* 0x0C */ virtual void *alloc(u32 size);
/* 0x10 */ virtual void free(void *block);
bool attach(EGG::Heap *heap, s32 align);
bool attach(EGG::Heap *heap, int align);
};
class mHeapAllocator_c : public mAllocator_c {
public:
@@ -19,13 +19,13 @@ public:
/* 0x08 */ virtual ~mHeapAllocator_c();
/* 0x0C */ // virtual void* alloc(u32 size); // see mAlloctor::alloc
/* 0x10 */ // virtual void free(void* block); // see mAlloctor::free
int replaceWithNewFrmHeap(s32 size, EGG::Heap *newHeap, char *heapName, s32 align, u32 unk);
int replaceWithNewExpHeap(s32 size, EGG::Heap *newHeap, char *heapName, s32 align, u32 unk);
bool replaceWithNewFrmHeap(s32 size, EGG::Heap *newHeap, char *heapName, s32 align, u32 unk);
bool replaceWithNewExpHeap(s32 size, EGG::Heap *newHeap, char *heapName, s32 align, u32 unk);
void destroyHeap();
s32 adjustFrmHeap();
s32 adjustExpHeap();
s32 createNewTempFrmHeap(s32 size, EGG::Heap *newHeap, char *heapName, s32 align, u32 unk);
void adjustFrmHeapRestoreCurrent();
static void *allocOnHeap(s32 size, mHeapAllocator_c *allocator);
static void *allocOnHeap(u32 size, mHeapAllocator_c *allocator);
};
#endif