mirror of
https://github.com/halpz/re3.git
synced 2025-08-01 03:30:46 +00:00
memory heap starting to work
This commit is contained in:
@ -40,6 +40,7 @@
|
||||
#include "Sprite2d.h"
|
||||
#include "AnimViewer.h"
|
||||
#include "Font.h"
|
||||
#include "MemoryHeap.h"
|
||||
|
||||
#define MAX_SUBSYSTEMS (16)
|
||||
|
||||
@ -277,7 +278,11 @@ psMouseSetPos(RwV2d *pos)
|
||||
RwMemoryFunctions*
|
||||
psGetMemoryFunctions(void)
|
||||
{
|
||||
#ifdef USE_CUSTOM_ALLOCATOR
|
||||
return &memFuncs;
|
||||
#else
|
||||
return nil;
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
@ -1461,6 +1466,10 @@ main(int argc, char *argv[])
|
||||
RwV2d pos;
|
||||
RwInt32 i;
|
||||
|
||||
#ifdef USE_CUSTOM_ALLOCATOR
|
||||
InitMemoryMgr();
|
||||
#endif
|
||||
|
||||
#ifndef _WIN32
|
||||
struct sigaction act;
|
||||
act.sa_sigaction = terminateHandler;
|
||||
|
Reference in New Issue
Block a user