Merge pull request #432 from thesourcehim/master
Update menu and config upon save type change
This commit is contained in:
commit
600d159427
|
@ -65,6 +65,7 @@ OPT(multisampling, bool, false, Config, OpenGLMultisampling)
|
||||||
OPT(multisamplingSize, int, 0, Config, OpenGLMultisamplingSize)
|
OPT(multisamplingSize, int, 0, Config, OpenGLMultisamplingSize)
|
||||||
OPT(command_line_overriding_firmware_language, bool, false, Config, CommandLineOverridingFirmwareLanguage)
|
OPT(command_line_overriding_firmware_language, bool, false, Config, CommandLineOverridingFirmwareLanguage)
|
||||||
OPT(firmware_language, int, 1, Config, FirmwareLanguage)
|
OPT(firmware_language, int, 1, Config, FirmwareLanguage)
|
||||||
|
OPT(savetype, int, 0, Config, SaveType)
|
||||||
|
|
||||||
/* Audio */
|
/* Audio */
|
||||||
OPT(audio_enabled, bool, true, Audio, Enabled)
|
OPT(audio_enabled, bool, true, Audio, Enabled)
|
||||||
|
|
|
@ -2652,6 +2652,8 @@ static void changesavetype(GSimpleAction *action, GVariant *parameter, gpointer
|
||||||
else if (strcmp(string, "flash-4m") == 0)
|
else if (strcmp(string, "flash-4m") == 0)
|
||||||
savetype = 6;
|
savetype = 6;
|
||||||
backup_setManualBackupType(savetype);
|
backup_setManualBackupType(savetype);
|
||||||
|
config.savetype=savetype;
|
||||||
|
g_simple_action_set_state(action, parameter);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void desmume_gtk_menu_tool_layers(GtkApplication *app)
|
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));
|
desmume_gtk_menu_view_hud(GTK_APPLICATION(app));
|
||||||
#endif
|
#endif
|
||||||
desmume_gtk_menu_tools(GTK_APPLICATION(app));
|
desmume_gtk_menu_tools(GTK_APPLICATION(app));
|
||||||
|
my_config->savetype=config.savetype;
|
||||||
std::string string;
|
std::string string;
|
||||||
switch (my_config->savetype) {
|
switch (my_config->savetype) {
|
||||||
case 0:
|
case 0:
|
||||||
|
|
Loading…
Reference in New Issue