ListGame *currentListGame = NULL;
int error;
int offset;
- char lastComment[MSG_SIZ];
+ char lastComment[MSG_SIZ], buf[MSG_SIZ];
GameListFree(&gameList);
yynewfile(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;
rewind(f);
yyskipmoves = FALSE;
+ DisplayTitle("WinBoard");
return 0;
}
BOOL skip = FALSE;\r
int pos = -1;\r
\r
+ if(nItem % 2000 == 0) {\r
+ snprintf(buf, MSG_SIZ, _("Scanning through games (%d)"), nItem);\r
+ SetWindowText(hwndMain, buf);\r
+ }\r
+\r
if( hasFilter ) {\r
st = GameListLine(lg->number, &lg->gameInfo);\r
if( !SearchPattern( st, pszFilter) ) skip = TRUE;\r
}\r
\r
SendDlgItemMessage(hDlg, OPT_GameListText, LB_SETCURSEL, 0, 0);\r
+ SetWindowText(hwndMain, "WinBoard");\r
\r
return count;\r
}\r
*st++ = line; // [HGM] filter: make adding line conditional
listLength++;
}
+ if(listLength % 2000 == 0) {
+ char buf[MSG_SIZ];
+ snprintf(buf, MSG_SIZ, _("Reading game file (%d)"), listLength);
+ DisplayTitle(buf);
+ }
lg->position = pos;
lg = (ListGame *) lg->node.succ;
}
+ DisplayTitle("WinBoard");
*st = NULL;
return listLength;
}