diff options
author | Aki <please@ignore.pl> | 2022-02-28 22:49:18 +0100 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-02-28 22:49:18 +0100 |
commit | c376af320ebd9d9e435ef3003dd35136dbd71ae8 (patch) | |
tree | 224ef8cdd3390260ed97d8278d1223d0494016c8 /Stars45/Main.cpp | |
parent | 724c36ea74dc6f2dfc097c45825c06df7756e058 (diff) | |
download | starshatter-c376af320ebd9d9e435ef3003dd35136dbd71ae8.zip starshatter-c376af320ebd9d9e435ef3003dd35136dbd71ae8.tar.gz starshatter-c376af320ebd9d9e435ef3003dd35136dbd71ae8.tar.bz2 |
Replaced old panic mechanism uses with the new one
This will allow to split the functionality even further. I predict that at some
point they I will start joining them up together once again, but for now I need
them to be isolated.
Diffstat (limited to 'Stars45/Main.cpp')
-rw-r--r-- | Stars45/Main.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Stars45/Main.cpp b/Stars45/Main.cpp index bd79886..dbb3a45 100644 --- a/Stars45/Main.cpp +++ b/Stars45/Main.cpp @@ -26,6 +26,7 @@ #include "MachineInfo.h" #include "Encrypt.h" #include "FormatUtil.h" +#include "Panic.h" #include "ParseUtil.h" #include "Random.h" #include "VersionInfo.h" @@ -132,8 +133,8 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, Token::close(); - if (*Game::GetPanicMessage()) - MessageBox(0, Game::GetPanicMessage(), "Starshatter - Error", MB_OK); + if (Panic::Panicked()) + MessageBox(0, Panic::Message(), "Starshatter - Error", MB_OK); } catch (const char* msg) { |