Big cleanup... Expect bugs

This commit is contained in:
MusicalProgrammer
2019-11-04 20:37:32 -05:00
parent f1d0d48dfa
commit 5e449d8882
28 changed files with 1699 additions and 1606 deletions

13
ErrorFunctions.cpp Normal file
View File

@@ -0,0 +1,13 @@
#include "ErrorFunctions.h"
#include "Globals.h"
void OnError(int err, std::string msg)
{
//g_usableApp->window()->setInputCaptureCount(0);
//g_usableApp->window()->setMouseVisible(true);
std::string emsg = "An unexpected error has occured and "+g_PlaceholderName+" has to quit. We're sorry!" + msg;
std::string title = g_PlaceholderName+"Crash";
//clearInstances();
MessageBox(NULL, emsg.c_str(), title.c_str(), MB_OK);
exit(err);
}