From 9c2a5812e32593a63d5e469bb941c5c2609f0826 Mon Sep 17 00:00:00 2001 From: AdventureT Date: Sat, 2 Dec 2023 17:28:01 +0100 Subject: [PATCH] Use free/malloc in Final build until the Toshi memory system is implemented --- Toshi/Source/TKernel/TMemory.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Toshi/Source/TKernel/TMemory.cpp b/Toshi/Source/TKernel/TMemory.cpp index 6237e46..6001ae2 100644 --- a/Toshi/Source/TKernel/TMemory.cpp +++ b/Toshi/Source/TKernel/TMemory.cpp @@ -30,6 +30,8 @@ TMemory::MemBlock* __stdcall TMemory::GetGlobalBlock() TPVOID TMemory::Alloc(TUINT a_uiSize, TUINT a_uiAlignment, MemBlock* a_pMemBlock, TPCHAR a_pBuffer, TINT a_iUnk3) { + // Let's just use malloc until i implemented this + return malloc(a_uiSize); TMutexLock lock; Initialise(); lock.Create(g_pMutex); @@ -49,6 +51,9 @@ TPVOID TMemory::Alloc(TUINT a_uiSize, TUINT a_uiAlignment, MemBlock* a_pMemBlock TBOOL TMemory::Free(TPVOID a_pMem) { + // Let's just use free until i implemented this + free(a_pMem); + return TTRUE; TMutexLock lock; Initialise(); lock.Create(g_pMutex);