X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=args.h;h=3e376e57e5ca80ad96ea1d06ff3af16737389982;hb=v4.9.x;hp=cdf51aac7713c93f3f7dda84c4caa94853b421e5;hpb=61d7701742047bbb6be9677d2a59f63f307b8f80;p=xboard.git diff --git a/args.h b/args.h index cdf51aa..3e376e5 100644 --- a/args.h +++ b/args.h @@ -624,6 +624,8 @@ ArgDescriptor argDescriptors[] = { { "fixedSize", ArgBoolean, (void *) &appData.fixedSize, TRUE, (ArgIniType) FALSE }, { "showMoveTime", ArgBoolean, (void *) &appData.moveTime, TRUE, (ArgIniType) FALSE }, { "bmpSave", ArgInt, (void *) &appData.bmpSave, FALSE, 0 }, + { "defaultEngineInstallDir", ArgFilename, (void *) &appData.defEngDir, FALSE, (ArgIniType) "." }, + { "defaultInstallProtocol", ArgInt, (void *) &appData.defProtocol, TRUE, (ArgIniType) 0 }, // [HGM] tournament options { "tourneyFile", ArgFilename, (void *) &appData.tourneyFile, FALSE, (ArgIniType) "" }, @@ -1439,7 +1441,12 @@ InitAppData(char *lpCmdLine) ParseArgs(StringGet, &lpCmdLine); /* if separate engine list is used, parse that too */ - if(*engineListFile) ParseSettingsFile(engineListFile, &engineListFile); + if(*engineListFile) { + char buf[MSG_SIZ]; + MySearchPath(installDir, engineListFile, buf); + if(*buf) { ASSIGN(engineListFile, buf); } + ParseSettingsFile(engineListFile, &engineListFile); + } if(appData.viewer && appData.viewerOptions[0]) ParseArgsFromString(appData.viewerOptions); if(appData.tourney && appData.tourneyOptions[0]) ParseArgsFromString(appData.tourneyOptions);