From 414ccec0f572cc79fb2e37d700cdd18fad9398bd Mon Sep 17 00:00:00 2001 From: Crayon2000 Date: Fri, 16 Oct 2009 21:38:40 +0000 Subject: [PATCH] [BUG] Corrected bug #5 submitted by imruon --- GRRLIB/GRRLIB/GRRLIB_core.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/GRRLIB/GRRLIB/GRRLIB_core.c b/GRRLIB/GRRLIB/GRRLIB_core.c index 8028c24..15ffccd 100644 --- a/GRRLIB/GRRLIB/GRRLIB_core.c +++ b/GRRLIB/GRRLIB/GRRLIB_core.c @@ -47,6 +47,7 @@ int GRRLIB_Init (void) { f32 yscale; u32 xfbHeight; Mtx44 perspective; + s8 error_code = 0; // Ensure this function is only ever called once if (is_setup) return 0 ; @@ -156,10 +157,10 @@ int GRRLIB_Init (void) { atexit(GRRLIB_Exit); // Initialise the filing system - if (!fatInitDefault()) return -2 ; + if (!fatInitDefault()) error_code = -2; VIDEO_SetBlack(false); // Enable video output - return 0; + return error_code; } /**