Welcome! Log In Create A New Profile

Advanced

Calling functions after switching to System Menu?

Posted by ShadowSpectrum 
Calling functions after switching to System Menu?
October 31, 2010 12:10PM
I was wondering what would happen if you did this:

SYS_ResetSystem(SYS_RETURNTOMENU, 0, 0); //Go to the system menu
printf("What will this do???"); //This is called after the program calls the system menu

So since the code prints something after it exits to the system menu, would the code crash? I'm too afraid to try it myself in case it bricks my wii.
Re: Calling functions after switching to System Menu?
November 01, 2010 02:24PM
SYS_ResetSystem never returns. So your printf is never executed.
Re: Calling functions after switching to System Menu?
November 02, 2010 09:10PM
I think you need to understand what SYS_ResetSystem(SYS_ReturnToMenu, 0, 0) actually does:

1) After the function is called the program exits, so whatever you do past that won't do anything.

2) It is about 100 to 1 of a chance that it would brick your wii, if it did get executed (which it won't) the most likely thing that will happen is a crash.
Sorry, only registered users may post in this forum.

Click here to login