Skip to content

Commit 90612b8

Browse files
committed
main: Improve reset reliability
1 parent 8b9d7ad commit 90612b8

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

main.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include <hal/video.h>
77
#include <hal/xbox.h>
88
#include <nxdk/mount.h>
9+
#include <hal/debug.h>
910
#include <nxdk/path.h>
1011
#include <stdbool.h>
1112
#include <stdio.h>
@@ -292,6 +293,7 @@ int main(void)
292293
}
293294

294295
cleanup();
296+
HalReturnToFirmware(HalRebootRoutine);
295297
return 0;
296298
}
297299

@@ -388,5 +390,6 @@ static void cleanup(void)
388390
pb_kill();
389391
nvnetdrv_stop();
390392
usbh_core_deinit();
393+
debugClearScreen();
391394
SDL_Quit();
392395
}

0 commit comments

Comments
 (0)