Skip to content

Commit 633492f

Browse files
committed
Return to loader when console initialization fails
1 parent 0c01b6e commit 633492f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

libogc/exception.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
33
exception.c -- PPC exception handling support
44
5-
Copyright (C) 2004 - 2025
5+
Copyright (C) 2004 - 2026
66
Michael Wiedenbauer (shagkur)
77
Dave Murphy (WinterMute)
88
Extrems' Corner.org
@@ -266,7 +266,8 @@ void c_default_exceptionhandler(frame_context *pCtx)
266266
GX_AbortFrame();
267267
VIDEO_GetFrameBufferPan(&xstart,&ystart,&xres,&yres,&stride);
268268
framebuffer = VIDEO_GetCurrentFramebuffer();
269-
CON_Init(framebuffer,xstart,ystart,xres,yres,stride*VI_DISPLAY_PIX_SZ);
269+
if(CON_Init(framebuffer,xstart,ystart,xres,yres,stride*VI_DISPLAY_PIX_SZ))
270+
__reload();
270271

271272
kprintf("\n\n\n\tException (%s) occurred!", exception_name[pCtx->nExcept]);
272273

0 commit comments

Comments
 (0)