GameState_, GameAlloc_, SystemArena_ & ZeldaArena_

This commit is contained in:
Baoulettes 2022-06-28 22:09:15 +02:00
commit 0d85caaf7e
38 changed files with 132 additions and 133 deletions

View file

@ -454,7 +454,7 @@ static void RunFrame()
size = runFrameContext.ovl->instanceSize;
osSyncPrintf("クラスサイズ=%dバイト\n", size); // "Class size = %d bytes"
runFrameContext.gameState = SystemArena_MallocDebug(size, __FILE__, __LINE__);
runFrameContext.gameState = SystemArena_MallocDebug(size);
if (!runFrameContext.gameState)
{
@ -495,7 +495,7 @@ static void RunFrame()
runFrameContext.nextOvl = Graph_GetNextGameState(runFrameContext.gameState);
GameState_Destroy(runFrameContext.gameState);
SystemArena_FreeDebug(runFrameContext.gameState, __FILE__, __LINE__);
SystemArena_FreeDebug(runFrameContext.gameState);
Overlay_FreeGameState(runFrameContext.ovl);
}
Graph_Destroy(&runFrameContext.gfxCtx);