@@ -535,11 +535,11 @@ static int confIniHandler(void* user, const char* section, const char* name, con
535535 return 1 ; // 1 is no error? Really?
536536}
537537
538- static int gameConfIniHandler (void * user , const char * section , const char * name , const char * value )
538+ /* static int gameConfIniHandler(void* user, const char* section, const char* name, const char* value)
539539{
540- // OafGameConfig *const config = (OafGameConfig*)user;
540+ OafGameConfig *const config = (OafGameConfig*)user;
541541
542- /* if(strcmp(section, "game") == 0)
542+ if(strcmp(section, "game") == 0)
543543 {
544544 // Save type.
545545 // Save slot.
@@ -561,18 +561,18 @@ static int gameConfIniHandler(void* user, const char* section, const char* name,
561561 else if(strcmp(section, "input") == 0)
562562 {
563563 }
564- else return 0;*/ // Error.
564+ else return 0; // Error.
565565
566566 return 1; // 1 is no error? Really?
567- }
567+ }*/
568568
569- static Result parseConfig (const char * const path , u8 confType , void * config )
569+ static Result parseConfig (const char * const path , /* u8 confType, */ void * config )
570570{
571571 char * iniBuf = (char * )calloc (INI_BUF_SIZE , 1 );
572572 if (iniBuf == NULL ) return RES_OUT_OF_MEM ;
573573
574574 Result res = fsQuickRead (path , iniBuf , INI_BUF_SIZE - 1 );
575- if (res == RES_OK ) ini_parse_string (iniBuf , (confType == 0 ? confIniHandler : gameConfIniHandler ), config );
575+ if (res == RES_OK ) ini_parse_string (iniBuf , /* (confType == 0 ? */ confIniHandler /* : gameConfIniHandler) */ , config );
576576 else
577577 {
578578 const char * const defaultConfig = DEFAULT_CONFIG ;
@@ -597,7 +597,7 @@ static Result handleFsStuff(char romAndSavePath[512])
597597 if ((res = fChdir (OAF_WORK_DIR )) != RES_OK ) break ;
598598
599599 // Parse config.
600- parseConfig ("config.ini" , 0 , & g_oafConfig );
600+ parseConfig ("config.ini" , /* 0, */ & g_oafConfig );
601601 { // TODO: Move this elsewhere?
602602 const u8 backlight = g_oafConfig .backlight ;
603603 GFX_setBrightness (backlight , backlight );
0 commit comments