diff --git a/src/game_memory.cc b/src/game_memory.cc index 888aed1..942bf27 100644 --- a/src/game_memory.cc +++ b/src/game_memory.cc @@ -3,8 +3,13 @@ #include "db.h" #include "dictionary.h" #include "memory.h" +#include "memory_defs.h" #include "memory_manager.h" +static void* gameMemoryMalloc(size_t size); +static void* gameMemoryRealloc(void* ptr, size_t newSize); +static void gameMemoryFree(void* ptr); + // 0x44B250 int gameMemoryInit() { @@ -16,19 +21,19 @@ int gameMemoryInit() } // 0x44B294 -void* gameMemoryMalloc(size_t size) +static void* gameMemoryMalloc(size_t size) { return internal_malloc(size); } // 0x44B29C -void* gameMemoryRealloc(void* ptr, size_t newSize) +static void* gameMemoryRealloc(void* ptr, size_t newSize) { return internal_realloc(ptr, newSize); } // 0x44B2A4 -void gameMemoryFree(void* ptr) +static void gameMemoryFree(void* ptr) { internal_free(ptr); } diff --git a/src/game_memory.h b/src/game_memory.h index 1c543f7..1923eb7 100644 --- a/src/game_memory.h +++ b/src/game_memory.h @@ -1,11 +1,6 @@ #ifndef GAME_MEMORY_H #define GAME_MEMORY_H -#include "memory_defs.h" - int gameMemoryInit(); -void* gameMemoryMalloc(size_t size); -void* gameMemoryRealloc(void* ptr, size_t newSize); -void gameMemoryFree(void* ptr); #endif /* GAME_MEMORY_H */