Try to do non-main thread crash save/screenshot in main thread

This commit is contained in:
Jonathan G Rennison
2018-08-26 22:15:21 +01:00
parent 5d61b27faa
commit 743432e7f0
3 changed files with 46 additions and 1 deletions

View File

@@ -127,6 +127,7 @@ public:
bool WriteScreenshot(char *filename, const char *filename_last) const;
bool MakeCrashLog() const;
bool MakeCrashSavegameAndScreenshot() const;
/**
* Initialiser for crash logs; do the appropriate things so crashes are
@@ -141,6 +142,10 @@ public:
inline const char *GetMessage() const { return this->message; }
static const char *GetAbortCrashlogReason();
static const CrashLog *main_thread_pending_crashlog;
static void MainThreadExitCheckPendingCrashlog();
};
#endif /* CRASHLOG_H */