diff --git a/source/arm11/filebrowser.c b/source/arm11/filebrowser.c index c5593d8..8276b91 100644 --- a/source/arm11/filebrowser.c +++ b/source/arm11/filebrowser.c @@ -306,6 +306,8 @@ static atp_pageopt_t serve_on_key( atp_callerdata_t data, atp_counter_t index, a if( RES_OK != rom_get_serial(path, serial) ) { RECOVER_PATH; + serial[4] = '1'; + fsQuickWrite("serial.txt", serial, 5); return WAIT_ON_ERRPAGE( display_noserial ); } else RECOVER_PATH; @@ -313,18 +315,22 @@ static atp_pageopt_t serve_on_key( atp_callerdata_t data, atp_counter_t index, a acl_count_t len; if( RES_OK != acl_open_lib( "gba.acl" ) ) { + serial[4] = '2'; + fsQuickWrite("serial.txt", serial, 5); return WAIT_ON_ERRPAGE( display_openlib ); } if( RES_OK != acl_select_game( serial, 0, &len ) ) { acl_close_lib(); + serial[4] = '3'; + fsQuickWrite("serial.txt", serial, 5); return WAIT_ON_ERRPAGE( display_selcht ); } if( len == 0 ) { atp_tips( "", NULL ); acl_close_lib(); - serial[5] = 'a'+len; + serial[4] = '4'; fsQuickWrite("serial.txt", serial, 5); return WAIT_ON_ERRPAGE( display_nocheat ); }