Debug position selection
[xboard.git] / gamelist.c
index 4e57cb3..2626839 100644 (file)
@@ -214,7 +214,7 @@ int GameListBuild(f)
     ListGame *currentListGame = NULL;
     int error;
     int offset;
-    char lastComment[MSG_SIZ];
+    char lastComment[MSG_SIZ], buf[MSG_SIZ];
 
     GameListFree(&gameList);
     yynewfile(f);
@@ -316,10 +316,13 @@ int GameListBuild(f)
          default:
            break;
        }
+       if(gameNumber % 1000 == 0) {
+           snprintf(buf, MSG_SIZ,"Reading game file (%d)", gameNumber);
+           DisplayTitle(buf);
+       }
     }
     while (cm != (ChessMove) 0);
 
-
     if (appData.debugMode) {
        for (currentListGame = (ListGame *) gameList.head;
             currentListGame->node.succ;
@@ -331,6 +334,7 @@ int GameListBuild(f)
        }
     }
 
+    DisplayTitle("WinBoard");
     rewind(f);
     yyskipmoves = FALSE;
     return 0;