X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=args.h;h=1da24488ce6fcfb700418efcb2a0f05e408a7081;hb=d1638304f504ca6cbfa36eb7a951b530f374bd10;hp=c6914b0e54307d9f6f0802a3d97e7816dca37b7b;hpb=4223777243f0d5c358c15307b5131d94a8030a3d;p=xboard.git diff --git a/args.h b/args.h index c6914b0..1da2448 100644 --- a/args.h +++ b/args.h @@ -112,6 +112,7 @@ char *firstEngineLine; char *secondEngineLine; char *icsNick; char *theme; +char *replace; void EnsureOnScreen(int *x, int *y, int minX, int minY); char StringGet(void *getClosure); @@ -620,6 +621,7 @@ ArgDescriptor argDescriptors[] = { { "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) "" }, @@ -1184,7 +1186,7 @@ ParseArgs(GetFunc get, void *cl) break; } if(replace) { // previous -replace option makes this string option conditional - char *p = replace; + char *p = (char*) replace; free(replace); replace = NULL; // but expires in the process if(strcmp(*(char**) ad->argLoc, p)) break; // only use to replace the given string }