mirror of
https://github.com/zeldaret/ss
synced 2026-05-25 23:35:13 -04:00
dc221b4795
* EGG: Archive, DvdFile, DvdRipper * start eggStream * FrmHeap and AssertHeap OK * progress on EggController * port in WPAD stuff * update WPAD/WUD/KPAD/SC symbols * eggController OK * bytematch more CoreController virtual funcs * eggDecomp/eggStreamDecomp Ok * eggDvdRipper OK * EGG gfx splits * Finished Splitting EGG * create egg Files * eggDecomp.h -> eggStreamDecomp.h * Revert some format changes
29 lines
610 B
C++
29 lines
610 B
C++
#ifndef EGG_ALLOCATOR_H
|
|
#define EGG_ALLOCATOR_H
|
|
#include "rvl/MEM.h"
|
|
|
|
#include <common.h>
|
|
|
|
void MEMInitAllocatorFor_Heap(MEMAllocator *alloc, s32 align, void *heap);
|
|
|
|
namespace EGG {
|
|
class Heap;
|
|
class Allocator : public MEMAllocator {
|
|
public:
|
|
Allocator(Heap *heap, s32 align);
|
|
|
|
public:
|
|
/* vt 0x08 */ virtual ~Allocator();
|
|
/* vt 0x0C */ virtual void *alloc(u32 size);
|
|
/* vt 0x10 */ virtual void free(void *block);
|
|
|
|
inline MEMAllocator *getHandle() {
|
|
return static_cast<MEMAllocator *>(this);
|
|
}
|
|
/* 0x14 */ Heap *mHeap;
|
|
/* 0x18 */ s32 align;
|
|
};
|
|
}; // namespace EGG
|
|
|
|
#endif
|