Skip to content

Commit 983fb69

Browse files
committed
cleanup code
1 parent 9240cdb commit 983fb69

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

libogc/exception.c

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -204,26 +204,20 @@ static void waitForReload(void)
204204

205205
PAD_Init();
206206

207-
kprintf("\n\n\tPress RESET (or Z on your GameCube Controller) to reload");
208-
209-
if(reload_timer > 0) {
210-
kprintf("\n\n\tReloading in %d seconds", reload_timer/50);
211-
}
207+
kprintf("\n\n\tPress RESET (or Z on your GameCube Controller) to reload\n\n");
212208

213209
while ( 1 )
214210
{
215211
if(reload_timer > 0) {
216-
kprintf("\x1b[2K\tReloading in %d seconds", reload_timer/50);
217-
kprintf("\r\tReloading in %d seconds ", reload_timer/50);
212+
kprintf("\x1b[2K\r\tReloading in %d seconds", reload_timer/50);
218213
}
219214
PAD_ScanPads();
220215

221216
int buttonsDown = PAD_ButtonsDown(0);
222217

223-
if( (buttonsDown & PAD_TRIGGER_Z) || SYS_ResetButtonDown() ||
224-
reload_timer == 0 )
218+
if( (buttonsDown & PAD_TRIGGER_Z) || SYS_ResetButtonDown() || reload_timer == 0 )
225219
{
226-
kprintf("\n\n\tReload\n\n\n");
220+
kprintf("\n\tReload\n\n\n");
227221
_CPU_ISR_Disable(level);
228222
__reload ();
229223
}

0 commit comments

Comments
 (0)