Add flags field to CheckCaches for which checks to run

Add header file for CheckCaches
This commit is contained in:
Jonathan G Rennison
2021-10-03 23:03:26 +01:00
parent c408007575
commit 5ed7aee8d3
7 changed files with 379 additions and 346 deletions

View File

@@ -37,6 +37,7 @@
#include "zoning.h"
#include "tbtr_template_vehicle_func.h"
#include "widgets/statusbar_widget.h"
#include "debug_desync.h"
#include "table/strings.h"
@@ -937,7 +938,6 @@ CommandCost CmdCompanyCtrl(TileIndex tile, DoCommandFlag flags, uint32 p1, uint3
InvalidateWindowData(WC_CLIENT_LIST, 0);
InvalidateWindowClassesData(WC_DEPARTURES_BOARD, 0);
extern void CheckCaches(bool force_check, std::function<void(const char *)> log);
CheckCaches(true, nullptr);
break;
}