Skip to content

Commit

Permalink
remove saving cfg when loading hdl svr, as it does not fix the root o…
Browse files Browse the repository at this point in the history
…f the problem
  • Loading branch information
KrahJohlito committed Dec 15, 2018
1 parent cea2f0c commit 311249f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
1 change: 0 additions & 1 deletion include/lang.h
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,6 @@ enum _STR_IDS {
_STR_BUILD_DETAILS,
_STR_PARENLOCK_INVALID_PASSWORD,
_STR_ERR_VMC_FRAGMENTED_CONTINUE,
_STR_HDL_SAVE_SETTINGS,
_STR_AUDIO_SETTINGS,
_STR_SFX,
_STR_BOOT_SND,
Expand Down
1 change: 0 additions & 1 deletion src/lang.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,6 @@ static char *internalEnglish[LANG_STR_COUNT] = {
"Build Options:",
"Error - this password cannot be used.",
"VMC %s file is fragmented. Continue with Memory Card in slot %d?",
"Settings must be saved before continuing.",
"Audio Settings",
"Enable Sound Effects",
"Enable Boot Sound",
Expand Down
12 changes: 3 additions & 9 deletions src/menusys.c
Original file line number Diff line number Diff line change
Expand Up @@ -733,16 +733,10 @@ void menuHandleInputMenu()
menuSetParentalLockCheckState(1); //Re-enable parental lock check.
}
} else if (id == MENU_START_HDL) {
if (menuCheckParentalLock() == 0) {
int ret = guiMsgBox(_l(_STR_HDL_SAVE_SETTINGS), 1, NULL);
if (ret != 0) {
saveConfig(CONFIG_OPL | CONFIG_NETWORK, 1);
menuSetParentalLockCheckState(1); //Re-enable parental lock check.
handleHdlSrv();
}
}
if (menuCheckParentalLock() == 0)
handleHdlSrv();
} else if (id == MENU_ABOUT) {
guiShowAbout();
guiShowAbout();
} else if (id == MENU_EXIT) {
if (guiMsgBox(_l(_STR_CONFIRMATION_EXIT), 1, NULL))
sysExecExit();
Expand Down

0 comments on commit 311249f

Please sign in to comment.