mirror of
https://github.com/GRRLIB/GRRLIB.git
synced 2024-11-22 15:02:20 +00:00
[BUG] Corrected bug #5 submitted by imruon
This commit is contained in:
parent
3319a09ccb
commit
414ccec0f5
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue