mirror of https://github.com/OpenTTD/OpenTTD
(svn r22793) -Codechange: remove callback default to make clear they are not forgotten
parent
5e7abe58f9
commit
6d51883a87
|
@ -1268,7 +1268,7 @@ DEF_CONSOLE_CMD(ConRescanNewGRF)
|
||||||
}
|
}
|
||||||
|
|
||||||
TarScanner::DoScan();
|
TarScanner::DoScan();
|
||||||
ScanNewGRFFiles();
|
ScanNewGRFFiles(NULL);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -114,7 +114,7 @@ public:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case CONTENT_TYPE_NEWGRF:
|
case CONTENT_TYPE_NEWGRF:
|
||||||
ScanNewGRFFiles();
|
ScanNewGRFFiles(NULL);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case CONTENT_TYPE_SCENARIO:
|
case CONTENT_TYPE_SCENARIO:
|
||||||
|
|
|
@ -196,7 +196,7 @@ struct NewGRFScanCallback {
|
||||||
virtual void OnNewGRFsScanned() = 0;
|
virtual void OnNewGRFsScanned() = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
void ScanNewGRFFiles(NewGRFScanCallback *callback = NULL);
|
void ScanNewGRFFiles(NewGRFScanCallback *callback);
|
||||||
void CheckForMissingSprites();
|
void CheckForMissingSprites();
|
||||||
const GRFConfig *FindGRFConfig(uint32 grfid, FindGRFConfigMode mode, const uint8 *md5sum = NULL, uint32 desired_version = 0);
|
const GRFConfig *FindGRFConfig(uint32 grfid, FindGRFConfigMode mode, const uint8 *md5sum = NULL, uint32 desired_version = 0);
|
||||||
GRFConfig *GetGRFConfig(uint32 grfid, uint32 mask = 0xFFFFFFFF);
|
GRFConfig *GetGRFConfig(uint32 grfid, uint32 mask = 0xFFFFFFFF);
|
||||||
|
|
Loading…
Reference in New Issue