Merge pull request #30 from robojumper/eggAllocator

eggAllocator matching
This commit is contained in:
Elijah Thomas
2024-05-05 12:46:16 -04:00
committed by GitHub
6 changed files with 54 additions and 12 deletions
+2 -3
View File
@@ -3,9 +3,8 @@
#include "rvl/MEM.h"
#include <common.h>
// /* 80495310 */ MEMInitAllocatorFor_Heap(MEMAllocator* alloc, s32 align, void* heap);
// /* 804952f0 */ MEM_AllocFor_Heap(MEMAllocator* alloc, void* block);
// /* 804952d0 */ MEM_AllocFor_Heap(MEMAllocator* alloc, u32 size, s32 align);
/* 80495310 */ void MEMInitAllocatorFor_Heap(MEMAllocator* alloc, s32 align, void* heap);
namespace EGG {
class Heap;
class Allocator : public MEMAllocator {
+1 -1
View File
@@ -19,7 +19,7 @@ typedef struct MEMAllocatorFuncs {
typedef struct MEMAllocator {
const MEMAllocatorFuncs *funcs; // at 0x0
struct MEMiHeapHead *heap; // at 0x4
void *heap; // at 0x4
u32 heapParam1; // at 0x8
u32 heapParam2; // at 0xC
} MEMAllocator;