From: Arun Persaud Date: Thu, 3 Feb 2011 16:28:15 +0000 (-0800) Subject: Revert "Implement -reset option feature in WinBoard" X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=9695595fda621e11912f3d29846eaee46b48f635;p=xboard.git Revert "Implement -reset option feature in WinBoard" This reverts commit efecf86cd9b54072c6a2f38d62f1d775e69c545b. picked the wrong commit from HGM's git tree. --- diff --git a/backend.c b/backend.c index e0f6ec9..17e77ae 100644 --- a/backend.c +++ b/backend.c @@ -13908,8 +13908,6 @@ ParseOption(Option *opt, ChessProgramState *cps) opt->type = Button; } else if(p = strstr(opt->name, " -save")) { opt->type = SaveButton; - } else if(p = strstr(opt->name, " -reset")) { - opt->type = ResetButton; } else return FALSE; *p = 0; // terminate option name // now look if the command-line options define a setting for this engine option. diff --git a/winboard/wsettings.c b/winboard/wsettings.c index df992aa..ccfae75 100644 --- a/winboard/wsettings.c +++ b/winboard/wsettings.c @@ -419,10 +419,7 @@ LRESULT CALLBACK SettingsProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lPa if(j < 0) break; if( activeCps->option[j].type == SaveButton) GetOptionValues(hDlg, activeCps); - else if( activeCps->option[j].type == ResetButton) { - ClearOptions(activeCps); - EndDialog( hDlg, 0 ); - } else if( activeCps->option[j].type != Button) break; + else if( activeCps->option[j].type != Button) break; snprintf(buf, MSG_SIZ, "option %s\n", activeCps->option[j].name); SendToProgram(buf, activeCps); }