Fix recursive faults in Window crash logger due to message box event loop.

This commit is contained in:
Jonathan G Rennison
2017-02-19 12:56:56 +00:00
parent c2825c12ea
commit 102405e082
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