Merge branch 'crashlog_improvements' into jgrpp

This commit is contained in:
Jonathan G Rennison
2017-02-19 12:57:55 +00:00
4 changed files with 28 additions and 0 deletions

View File

@@ -53,6 +53,20 @@ extern GameMode _game_mode;
extern SwitchMode _switch_mode;
extern bool _exit_game;
#if defined(WIN32)
extern bool _in_event_loop_post_crash;
inline bool InEventLoopPostCrash()
{
return _in_event_loop_post_crash;
}
#else
inline bool InEventLoopPostCrash()
{
return false;
}
#endif
/** Modes of pausing we've got */
enum PauseMode {
PM_UNPAUSED = 0, ///< A normal unpaused game