Skip to content

Commit ab1c181

Browse files
exception: show message to reload system
Added a message that tells the user that they can press reset (or Z on their GameCube Controller) to force reload because users tended to just unplug their Wiis from power. --------- Co-authored-by: DacoTaco <[email protected]>
1 parent 4d3d1a3 commit ab1c181

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

libogc/exception.c

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -201,20 +201,21 @@ void __exception_setreload(int t)
201201
static void waitForReload(void)
202202
{
203203
u32 level;
204-
205-
PAD_Init();
206204

207-
if(reload_timer > 0)
208-
kprintf("\n\tReloading in %d seconds\n", reload_timer/50);
205+
PAD_Init();
206+
207+
kprintf("\n\n\tPress RESET (or Z on your GameCube Controller) to reload\n\n");
209208

210209
while ( 1 )
211210
{
211+
if(reload_timer > 0) {
212+
kprintf("\x1b[2K\r\tReloading in %d seconds", reload_timer/50);
213+
}
212214
PAD_ScanPads();
213215

214216
int buttonsDown = PAD_ButtonsDown(0);
215217

216-
if( (buttonsDown & PAD_TRIGGER_Z) || SYS_ResetButtonDown() ||
217-
reload_timer == 0 )
218+
if( (buttonsDown & PAD_TRIGGER_Z) || SYS_ResetButtonDown() || reload_timer == 0 )
218219
{
219220
kprintf("\n\tReload\n\n\n");
220221
_CPU_ISR_Disable(level);

0 commit comments

Comments
 (0)