From: H.G. Muller Date: Sun, 30 Dec 2012 13:54:43 +0000 (+0100) Subject: Store some more tourney params in tourney file X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=5ed44d13065e80e2948b3b05156184daffde8a06;p=xboard.git Store some more tourney params in tourney file The hash and threads settings, as well as ponder and book options are now also saved in the tourney file, so that tournaments can be played in parallel where these parameters differ, and no mess up can occur on restarting a touney after doing something else. --- diff --git a/backend.c b/backend.c index 52e8097..25134bf 100644 --- a/backend.c +++ b/backend.c @@ -10063,7 +10063,15 @@ WriteTourneyFile (char *results, FILE *f) fprintf(f, "-loadPositionFile \"%s\"\n", appData.loadPositionFile); fprintf(f, "-loadPositionIndex %d\n", appData.loadPositionIndex); fprintf(f, "-rewindIndex %d\n", appData.rewindIndex); + fprintf(f, "-usePolyglotBook %s\n", appData.usePolyglotBook ? "true" : "false"); + fprintf(f, "-polyglotBook %s\n", appData.polyglotBook); + fprintf(f, "-bookDepth %d\n", appData.bookDepth); + fprintf(f, "-bookVariation %d\n", appData.bookStrength); fprintf(f, "-discourageOwnBooks %s\n", appData.defNoBook ? "true" : "false"); + fprintf(f, "-defaultHashSize %d\n", appData.defaultHashSize); + fprintf(f, "-defaultCacheSizeEGTB %d\n", appData.defaultCacheSizeEGTB); + fprintf(f, "-ponderNextMove %s\n", appData.ponderNextMove ? "true" : "false"); + fprintf(f, "-smpCores %d\n", appData.smpCores); if(searchTime > 0) fprintf(f, "-searchTime \"%d:%02d\"\n", searchTime/60, searchTime%60); else {