Crash log: Suppress messages from internal faults

This commit is contained in:
Jonathan G Rennison
2023-06-12 21:26:43 +01:00
parent ad995cbebc
commit 8c507d6611
5 changed files with 19 additions and 4 deletions

View File

@@ -55,6 +55,9 @@ private:
/** Temporary 'local' location of the end of the buffer. */
static const char *gamelog_last;
/** Whether a crash has already occured */
static bool have_crashed;
static void GamelogFillCrashLog(const char *s);
protected:
/**
@@ -208,6 +211,8 @@ public:
static void InconsistencyLog(const InconsistencyExtraInfo &info);
static void VersionInfoLog();
static void RegisterCrashed() { CrashLog::have_crashed = true; }
static bool HaveAlreadyCrashed() { return CrashLog::have_crashed; }
static void SetErrorMessage(const char *message);
static void AfterCrashLogCleanup();