X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=args.h;fp=args.h;h=db6ec8f20f1966e22a7d245f807a1d621079f605;hb=38ff5eb2dc0da29a8138e4bedc94580405d570b0;hp=cdf51aac7713c93f3f7dda84c4caa94853b421e5;hpb=5d34e50444d0107bfe7d10ea2a38b003d130df24;p=xboard.git diff --git a/args.h b/args.h index cdf51aa..db6ec8f 100644 --- a/args.h +++ b/args.h @@ -624,6 +624,7 @@ 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) "." }, // [HGM] tournament options { "tourneyFile", ArgFilename, (void *) &appData.tourneyFile, FALSE, (ArgIniType) "" }, @@ -1439,7 +1440,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);