aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorNebuleon Fumika2013-01-13 20:59:26 -0500
committerNebuleon Fumika2013-01-13 20:59:26 -0500
commita26bc99b90652ab137503a93fb0fa6c559742d01 (patch)
treec992d9c59b7f3ba3f2bb2af32a5b45d8603cfb2b /source
parent5e6b9ea6ca553cf5bf4d318b258a2c7f9c36b74c (diff)
downloadsnes9x2005-a26bc99b90652ab137503a93fb0fa6c559742d01.tar.gz
snes9x2005-a26bc99b90652ab137503a93fb0fa6c559742d01.tar.bz2
snes9x2005-a26bc99b90652ab137503a93fb0fa6c559742d01.zip
Prevent the "Load cheat file" option from showing a file selection dialog if no game is loaded.
Diffstat (limited to 'source')
-rw-r--r--source/nds/gui.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source/nds/gui.c b/source/nds/gui.c
index b18bbed..06a8500 100644
--- a/source/nds/gui.c
+++ b/source/nds/gui.c
@@ -2533,8 +2533,10 @@ u32 menu(u16 *screen)
void menu_load_cheat_file()
{
- char *file_ext[] = { ".cht", NULL };
- u32 i, string_num, string_len;
+ if (!first_load)
+ {
+ char *file_ext[] = { ".cht", NULL };
+ u32 i, string_num, string_len;
int flag;
if(load_file(file_ext, tmp_filename, DEFAULT_CHEAT_DIR) != -1)
@@ -2557,6 +2559,7 @@ u32 menu(u16 *screen)
cheat_menu_init();
}
+ }
}
void save_screen_snapshot()