X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=args.h;fp=args.h;h=dc2680aa9748d18af8fd68298cebf8ff9093dbd9;hb=3cd00530289c760381e43afe4c1d8a34429867e7;hp=56d9916804f119c48ab97fdce21bff5a5942203c;hpb=e4def842c0f4ed63df0196ac34ffdeb6a12304fe;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) ||