mirror of
https://github.com/zeldaret/ss
synced 2026-08-12 03:47:57 -04:00
Merge pull request #30 from robojumper/eggAllocator
eggAllocator matching
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user