X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=args.h;h=dc2680aa9748d18af8fd68298cebf8ff9093dbd9;hb=d52a42f3f58c509d66ea3ce1bfa22866cc86bb54;hp=56d9916804f119c48ab97fdce21bff5a5942203c;hpb=ebd7f78161504e46896f7d96bb41e29714b2fd53;p=xboard.git diff --git a/args.h b/args.h index 56d9916..dc2680a 100644 --- a/args.h +++ b/args.h @@ -1463,6 +1463,11 @@ InitAppData(char *lpCmdLine) } else appData.timeIncrement = -1; } if(appData.movesPerSession <= 0) appData.movesPerSession = MOVES_PER_SESSION; // mps <= 0 is invalid in any case + if(*appData.defaultPathEGTB) { // append value of deprecated -defaultPathEGTB to -egtFormats + snprintf(buf, MAX_ARG_LEN, "%s%snalimov:%s", appData.egtFormats, (*appData.egtFormats ?"," : ""), appData.defaultPathEGTB); + ASSIGN(appData.egtFormats, buf); + ASSIGN(appData.defaultPathEGTB, ""); + } /* Open startup dialog if needed */ if ((!appData.noChessProgram && !chessProgram && !appData.icsActive) ||