Skip to content

Commit

Permalink
Fix the crashes
Browse files Browse the repository at this point in the history
Thanks for the help Maschell!
  • Loading branch information
MatthewL246 authored Nov 11, 2023
1 parent cadb3a6 commit fb5cb13
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,13 +258,15 @@ int main(void)
WHBLogPrint("Got shutdown request!");

/* Print a goodbye message and then wait before exiting. */
/*
OSScreenPutFontEx(SCREEN_TV, 0, 6, "Goodbye! Quitting now.");
OSScreenPutFontEx(SCREEN_DRC, 0, 12, "Goodbye! Quitting now.");
DCFlushRange(tvBuffer, tvBufferSize);
DCFlushRange(drcBuffer, drcBufferSize);
OSScreenFlipBuffersEx(SCREEN_TV);
OSScreenFlipBuffersEx(SCREEN_DRC);
OSSleepTicks(OSMillisecondsToTicks(1000));
*/

/* It's vital to free everything - under certain circumstances, your memory
allocations can stay allocated even after you quit. */
Expand All @@ -274,7 +276,7 @@ int main(void)
free(drcBuffer);

/* Deinit everything */
OSScreenShutdown();
/*OSScreenShutdown();*/

WHBLogCafeDeinit();
WHBLogUdpDeinit();
Expand Down

0 comments on commit fb5cb13

Please sign in to comment.