mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-22 17:32:19 -05:00
Moved Heaps_Free
outside Main
after DeinitOTR, and mirrored Heaps_Alloc
before and outside of Main
. (#3279)
This commit is contained in:
parent
c3784b9758
commit
35b4357776
@ -65,8 +65,10 @@ int main(int argc, char** argv)
|
|||||||
CrashHandlerRegisterCallback(CrashHandler_PrintSohData);
|
CrashHandlerRegisterCallback(CrashHandler_PrintSohData);
|
||||||
BootCommands_Init();
|
BootCommands_Init();
|
||||||
|
|
||||||
|
Heaps_Alloc();
|
||||||
Main(0);
|
Main(0);
|
||||||
DeinitOTR();
|
DeinitOTR();
|
||||||
|
Heaps_Free();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -87,7 +89,6 @@ void Main(void* arg) {
|
|||||||
PreNmiBuff_Init(gAppNmiBufferPtr);
|
PreNmiBuff_Init(gAppNmiBufferPtr);
|
||||||
Fault_Init();
|
Fault_Init();
|
||||||
SysCfb_Init(0);
|
SysCfb_Init(0);
|
||||||
Heaps_Alloc();
|
|
||||||
sysHeap = (uintptr_t)gSystemHeap;
|
sysHeap = (uintptr_t)gSystemHeap;
|
||||||
fb = SysCfb_GetFbPtr(0);
|
fb = SysCfb_GetFbPtr(0);
|
||||||
gSystemHeapSize = 1024 * 1024 * 4;
|
gSystemHeapSize = 1024 * 1024 * 4;
|
||||||
@ -156,6 +157,4 @@ void Main(void* arg) {
|
|||||||
osDestroyThread(&sGraphThread);
|
osDestroyThread(&sGraphThread);
|
||||||
func_800FBFD8();
|
func_800FBFD8();
|
||||||
osSyncPrintf("mainproc 実行終了\n"); // "End of execution"
|
osSyncPrintf("mainproc 実行終了\n"); // "End of execution"
|
||||||
|
|
||||||
Heaps_Free();
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user