@@ -28,6 +28,11 @@ static void set_use_saves_folder_type (menu_t *menu, void *arg) {
2828 settings_save (& menu -> settings );
2929}
3030
31+ static void set_use_gamepak_custom_config_folder_type (menu_t * menu , void * arg ) {
32+ menu -> settings .use_gamepak_custom_config_folder = (bool ) (arg );
33+ settings_save (& menu -> settings );
34+ }
35+
3136static void set_sound_enabled_type (menu_t * menu , void * arg ) {
3237 menu -> settings .sound_enabled = (bool ) (arg );
3338 sound_use_sfx (menu -> settings .sound_enabled );
@@ -76,6 +81,12 @@ static component_context_menu_t set_use_saves_folder_type_context_menu = { .list
7681 COMPONENT_CONTEXT_MENU_LIST_END ,
7782}};
7883
84+ static component_context_menu_t set_use_gamepak_custom_config_folder_type_context_menu = { .list = {
85+ {.text = "On" , .action = set_use_gamepak_custom_config_folder_type , .arg = (void * ) (true) },
86+ {.text = "Off" , .action = set_use_gamepak_custom_config_folder_type , .arg = (void * ) (false) },
87+ COMPONENT_CONTEXT_MENU_LIST_END ,
88+ }};
89+
7990#ifdef BETA_SETTINGS
8091static component_context_menu_t set_bgm_enabled_type_context_menu = { .list = {
8192 {.text = "On" , .action = set_bgm_enabled_type , .arg = (void * ) (true) },
@@ -95,6 +106,7 @@ static component_context_menu_t options_context_menu = { .list = {
95106 { .text = "Show Hidden Files" , .submenu = & set_protected_entries_type_context_menu },
96107 { .text = "Sound Effects" , .submenu = & set_sound_enabled_type_context_menu },
97108 { .text = "Use Saves Folder" , .submenu = & set_use_saves_folder_type_context_menu },
109+ { .text = "Use Game Config Folder" , .submenu = & set_use_gamepak_custom_config_folder_type_context_menu },
98110#ifdef BETA_SETTINGS
99111 { .text = "Background Music" , .submenu = & set_bgm_enabled_type_context_menu },
100112 { .text = "Rumble Feedback" , .submenu = & set_rumble_enabled_type_context_menu },
@@ -140,6 +152,7 @@ static void draw (menu_t *menu, surface_t *d) {
140152 "* PAL60 Mode : %s\n"
141153 " Show Hidden Files : %s\n"
142154 " Use Saves folder : %s\n"
155+ " Use config folder : %s\n"
143156 " Sound Effects : %s\n"
144157#ifdef BETA_SETTINGS
145158 " Background Music : %s\n"
@@ -151,6 +164,7 @@ static void draw (menu_t *menu, surface_t *d) {
151164 format_switch (menu -> settings .pal60_enabled ),
152165 format_switch (menu -> settings .show_protected_entries ),
153166 format_switch (menu -> settings .use_saves_folder ),
167+ format_switch (menu -> settings .use_gamepak_custom_config_folder ),
154168 format_switch (menu -> settings .sound_enabled )
155169#ifdef BETA_SETTINGS
156170 ,
0 commit comments