Add -K switch to write savegame debug data and exit

This commit is contained in:
Jonathan G Rennison
2019-09-14 22:00:13 +01:00
parent dd13f24804
commit 6792495705
4 changed files with 63 additions and 3 deletions

View File

@@ -48,6 +48,9 @@ struct LoadCheckData {
struct LoggedAction *gamelog_action; ///< Gamelog actions
uint gamelog_actions; ///< Number of gamelog actions
bool want_debug_log_data = false;
std::string debug_log_data;
LoadCheckData() : error_data(nullptr), grfconfig(nullptr),
grf_compatibility(GLC_NOT_FOUND), gamelog_action(nullptr), gamelog_actions(0)
{