mirror of
https://gitlab.com/ryandwyer/perfect-dark
synced 2026-06-25 17:04:24 -04:00
ntsc-beta: Decompile malloc
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
#define ALIGN64(val) ((((u32)val) + 0x3f | 0x3f) ^ 0x3f)
|
||||
#define ARRAYCOUNT(a) (s32)(sizeof(a) / sizeof(a[0]))
|
||||
#define CHRRACE(chr) (chr ? chr->race : RACE_HUMAN)
|
||||
#define CRASH() *(u8 *)0 = 69
|
||||
#define IS4MB() (g_Is4Mb == true)
|
||||
#define IS8MB() (g_Is4Mb != true)
|
||||
#define PLAYERCOUNT() ((g_Vars.players[0] ? 1 : 0) + (g_Vars.players[1] ? 1 : 0) + (g_Vars.players[2] ? 1 : 0) + (g_Vars.players[3] ? 1 : 0))
|
||||
|
||||
@@ -12,6 +12,7 @@ u32 memAllocFromBank(struct memorypool *pool, u32 size, u8 poolnum);
|
||||
void *malloc(u32 len, u8 pool);
|
||||
s32 memReallocate(u32 allocation, s32 size, u8 poolnum);
|
||||
u32 memGetFree(u8 poolnum, u32 bank);
|
||||
u32 memGetSize(u8 poolnum, u32 bank);
|
||||
void memResetPool(u8 pool);
|
||||
void memDisablePool(u8 pool);
|
||||
u32 memAllocFromBankRight(void);
|
||||
|
||||
Reference in New Issue
Block a user