From e0857cde1cc3677006e2b5427bdc48cd06e77357 Mon Sep 17 00:00:00 2001 From: "simon.kagstrom" Date: Fri, 22 May 2009 07:14:35 +0000 Subject: [PATCH] Make memory options accessible, fix some warnings and remove printouts --- src/gui-sdl/gui-sdl.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/gui-sdl/gui-sdl.c b/src/gui-sdl/gui-sdl.c index 73465b5..9308ec4 100644 --- a/src/gui-sdl/gui-sdl.c +++ b/src/gui-sdl/gui-sdl.c @@ -69,13 +69,10 @@ static const char *options_messages[] = { /*03*/ "^|100|400|800", /*04*/ "Leds", /*05*/ "^|on|off", + /*06*/ "Memory options", NULL }; -static const char *other_messages[] = { - NULL -}; - /* All this is taken directly from PSPUAE */ static void A500_config(void) { @@ -272,6 +269,11 @@ static void general_options(void) options_messages, submenus); if (opt < 0) return; + if (opt == 6) + { + memory_options(); + return; + } set_cpu_to_chipset_speed(submenus[0]); set_floppy_speed(submenus[1]); //Floppy, Power, FPS, etc etc. @@ -468,7 +470,6 @@ static void save_load_state(int which) void gui_init (int argc, char **argv) { - printf("Init gui\n"); } int gui_open (void) @@ -548,7 +549,6 @@ void gui_display(int shortcut) int opt; memset(submenus, 0, sizeof(submenus)); - printf("gui_display: %d\n", shortcut); prefs_has_changed = 0; opt = menu_select_title("Main menu", main_menu_messages, submenus); @@ -587,7 +587,6 @@ void gui_display(int shortcut) if (prefs_has_changed) { char user_options[255] = ""; - int dummy; #ifdef OPTIONS_IN_HOME char *home = getenv ("HOME"); @@ -600,7 +599,6 @@ void gui_display(int shortcut) strcat(user_options, OPTIONSFILENAME); strcat(user_options, ".user"); - printf("Saving user options in %s\n", user_options); cfgfile_save(&changed_prefs, user_options, 0); } }