char *secondEngineLine;
char *icsNick;
char *theme;
+char *replace;
void EnsureOnScreen(int *x, int *y, int minX, int minY);
char StringGet(void *getClosure);
{ "epd", ArgTrue, (void *) &appData.epd, FALSE, INVALID },
{ "inscriptions", ArgString, (void *) &appData.inscriptions, FALSE, (ArgIniType) "" },
{ "autoInstall", ArgString, (void *) &appData.autoInstall, XBOARD, (ArgIniType) "" },
+ { "replace", ArgString, (void *) &replace, FALSE, (ArgIniType) NULL },
{ "fixedSize", ArgBoolean, (void *) &appData.fixedSize, TRUE, (ArgIniType) FALSE },
{ "showMoveTime", ArgBoolean, (void *) &appData.moveTime, TRUE, (ArgIniType) FALSE },
+ { "bmpSave", ArgInt, (void *) &appData.bmpSave, FALSE, 0 },
// [HGM] tournament options
{ "tourneyFile", ArgFilename, (void *) &appData.tourneyFile, FALSE, (ArgIniType) "" },
ASSIGN(*(char **) ad->argLoc, buf);
break;
}
+ if(replace) { // previous -replace option makes this string option conditional
+ int differs = strcmp(*(char**) ad->argLoc, (char*) replace);
+ free(replace); replace = NULL; // but expires in the process
+ if(differs) break; // only use to replace the given string
+ }
ASSIGN(*(char **) ad->argLoc, argValue);
break;