summaryrefslogtreecommitdiff
path: root/soh/src/code/main.c
diff options
context:
space:
mode:
authorGarrett Cox <garrettjcox@gmail.com>2023-11-05 07:43:24 -0600
committerGitHub <noreply@github.com>2023-11-05 07:43:24 -0600
commit20bb36c16419fb2811ea68583ba00a53abe739e6 (patch)
tree0463b2f6b8362905cbcf2cdd4e9d889b5098bcac /soh/src/code/main.c
parent051314e8b1f452cbfa62abe7decac73b8b5ae071 (diff)
parent129f410aba106b10b72e79a0d075464e95021db4 (diff)
Merge pull request #3352 from Archez/mergeDevelopIntoRando4
Merge develop into develop-rando
Diffstat (limited to 'soh/src/code/main.c')
-rw-r--r--soh/src/code/main.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/soh/src/code/main.c b/soh/src/code/main.c
index b59a825c1..9d52833fd 100644
--- a/soh/src/code/main.c
+++ b/soh/src/code/main.c
@@ -65,8 +65,10 @@ int main(int argc, char** argv)
CrashHandlerRegisterCallback(CrashHandler_PrintSohData);
BootCommands_Init();
+ Heaps_Alloc();
Main(0);
DeinitOTR();
+ Heaps_Free();
return 0;
}
@@ -87,7 +89,6 @@ void Main(void* arg) {
PreNmiBuff_Init(gAppNmiBufferPtr);
Fault_Init();
SysCfb_Init(0);
- Heaps_Alloc();
sysHeap = (uintptr_t)gSystemHeap;
fb = SysCfb_GetFbPtr(0);
gSystemHeapSize = 1024 * 1024 * 4;
@@ -156,6 +157,4 @@ void Main(void* arg) {
osDestroyThread(&sGraphThread);
func_800FBFD8();
osSyncPrintf("mainproc 実行終了\n"); // "End of execution"
-
- Heaps_Free();
}