diff options
author | aliaspider | 2015-04-06 11:30:47 +0100 |
---|---|---|
committer | aliaspider | 2015-04-06 11:30:47 +0100 |
commit | d4caae665f187e242f3b1d3867ecb71fed27dc04 (patch) | |
tree | c9b6e97a6be111a9e2830541b0311b7a39d4e303 | |
parent | 0fa650d5892068a4296fe72ad72683ab52db233d (diff) | |
download | picogpsp-d4caae665f187e242f3b1d3867ecb71fed27dc04.tar.gz picogpsp-d4caae665f187e242f3b1d3867ecb71fed27dc04.tar.bz2 picogpsp-d4caae665f187e242f3b1d3867ecb71fed27dc04.zip |
show the gbaover details for the current gamepak only.
-rw-r--r-- | gba_memory.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gba_memory.c b/gba_memory.c index dc74db5..4174b13 100644 --- a/gba_memory.c +++ b/gba_memory.c @@ -2262,6 +2262,12 @@ static s32 load_game_config_over(char *gamepak_title, char *gamepak_code, char * if (gbaover[i].romtitle[0] == '\0') return -1; + if (strcmp(gbaover[i].gamepak_code, gamepak_code)) + continue; + + if (strcmp(gbaover[i].gamepak_title, gamepak_title)) + continue; + printf("romtitle : %s\n", gbaover[i].romtitle); printf("gamepak title: %s\n", gbaover[i].gamepak_title); printf("gamepak code : %s\n", gbaover[i].gamepak_code); @@ -2271,12 +2277,6 @@ static s32 load_game_config_over(char *gamepak_title, char *gamepak_code, char * printf("INPUT gamepak code : %s\n", gamepak_code); printf("INPUT gamepak maker: %s\n", gamepak_maker); - if (strcmp(gbaover[i].gamepak_code, gamepak_code)) - continue; - - if (strcmp(gbaover[i].gamepak_title, gamepak_title)) - continue; - if (gbaover[i].idle_loop_target_pc != 0) idle_loop_target_pc = gbaover[i].idle_loop_target_pc; |