|
|
|
@ -605,8 +605,7 @@ void ScanNewGRFFiles()
|
|
|
|
|
uint num = GRFFileScanner::DoScan();
|
|
|
|
|
|
|
|
|
|
DEBUG(grf, 1, "Scan complete, found %d files", num);
|
|
|
|
|
if (num == 0 || _all_grfs == NULL) return;
|
|
|
|
|
|
|
|
|
|
if (num != 0 && _all_grfs != NULL) {
|
|
|
|
|
/* Sort the linked list using quicksort.
|
|
|
|
|
* For that we first have to make an array, then sort and
|
|
|
|
|
* then remake the linked list. */
|
|
|
|
@ -634,6 +633,11 @@ void ScanNewGRFFiles()
|
|
|
|
|
#endif
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Yes... these are the NewGRF windows */
|
|
|
|
|
InvalidateWindowClassesData(WC_SAVELOAD);
|
|
|
|
|
InvalidateWindowData(WC_GAME_OPTIONS, 0, GOID_NEWGRF_RESCANNED);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Find a NewGRF in the scanned list.
|
|
|
|
|