TombEngine/TR5Main/Global/malloc.h
TokyoSU 3670fddc71 Added Sophia
- deleted all the __cdecl except for the #define function. because /Gd enable the __cdecl for function by default.

- added the commented code in FireWeapon for TR3 entity (some function is missing)
2019-12-02 14:49:19 +01:00

14 lines
No EOL
434 B
C

#pragma once
#define MallocBuffer VAR_U_(0x00E4B10C, char*)
#define MallocSize VAR_U_(0x00E4B058, int)
#define MallocPtr VAR_U_(0x00E4B0DC, char*)
#define MallocFree VAR_U_(0x00E4B0F4, int)
#define MallocUsed VAR_U_(0x00E4B0F0, int)
#define InitGameMalloc ((void (__cdecl*)()) 0x004A7CB0)
#define GameMallocReal ((char* (__cdecl*)(int)) 0x004A7D00)
char* GameMalloc(int size);
void Inject_Malloc();