mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-20 04:59:11 +00:00
(svn r22793) -Codechange: remove callback default to make clear they are not forgotten
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user