diff --git a/desmume/src/frontend/posix/gtk/config_opts.h b/desmume/src/frontend/posix/gtk/config_opts.h index 2d1b121fc..151d0f874 100644 --- a/desmume/src/frontend/posix/gtk/config_opts.h +++ b/desmume/src/frontend/posix/gtk/config_opts.h @@ -65,6 +65,7 @@ OPT(multisampling, bool, false, Config, OpenGLMultisampling) OPT(multisamplingSize, int, 0, Config, OpenGLMultisamplingSize) OPT(command_line_overriding_firmware_language, bool, false, Config, CommandLineOverridingFirmwareLanguage) OPT(firmware_language, int, 1, Config, FirmwareLanguage) +OPT(savetype, int, 0, Config, SaveType) /* Audio */ OPT(audio_enabled, bool, true, Audio, Enabled) diff --git a/desmume/src/frontend/posix/gtk/main.cpp b/desmume/src/frontend/posix/gtk/main.cpp index 6ca9b273c..bac58372c 100644 --- a/desmume/src/frontend/posix/gtk/main.cpp +++ b/desmume/src/frontend/posix/gtk/main.cpp @@ -2652,6 +2652,8 @@ static void changesavetype(GSimpleAction *action, GVariant *parameter, gpointer else if (strcmp(string, "flash-4m") == 0) savetype = 6; backup_setManualBackupType(savetype); + config.savetype=savetype; + g_simple_action_set_state(action, parameter); } static void desmume_gtk_menu_tool_layers(GtkApplication *app) @@ -3027,6 +3029,7 @@ common_gtk_main(GApplication *app, gpointer user_data) desmume_gtk_menu_view_hud(GTK_APPLICATION(app)); #endif desmume_gtk_menu_tools(GTK_APPLICATION(app)); + my_config->savetype=config.savetype; std::string string; switch (my_config->savetype) { case 0: