From a26bc99b90652ab137503a93fb0fa6c559742d01 Mon Sep 17 00:00:00 2001 From: Nebuleon Fumika Date: Sun, 13 Jan 2013 20:59:26 -0500 Subject: Prevent the "Load cheat file" option from showing a file selection dialog if no game is loaded. --- source/nds/gui.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'source') 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() -- cgit v1.2.3