Skip to content

Commit

Permalink
menusys.c don't call saveConfig per file
Browse files Browse the repository at this point in the history
  • Loading branch information
KrahJohlito committed Sep 4, 2021
1 parent 0e84563 commit a41cc2b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/menusys.c
Expand Up @@ -851,10 +851,11 @@ void menuHandleInputMenu()
guiShowAbout();
} else if (id == MENU_SAVE_CHANGES) {
if (menuCheckParentalLock() == 0) {
saveConfig(CONFIG_OPL | CONFIG_NETWORK, 1);
#ifdef PADEMU
guiGameSavePadEmuGlobalConfig(configGetByType(CONFIG_GAME));
saveConfig(CONFIG_GAME, 0);
saveConfig(CONFIG_OPL | CONFIG_NETWORK | CONFIG_GAME, 1);
#else
saveConfig(CONFIG_OPL | CONFIG_NETWORK, 1);
#endif
menuSetParentalLockCheckState(1); // Re-enable parental lock check.
}
Expand Down

0 comments on commit a41cc2b

Please sign in to comment.