Added an error message if a level fails to load.

This commit is contained in:
MusicalProgrammer
2019-11-05 20:47:06 -05:00
parent 39173f34a1
commit 6eed189855
3 changed files with 26 additions and 1 deletions

View File

@@ -1,6 +1,8 @@
#include <sstream>
#include "ErrorFunctions.h"
#include "Globals.h"
void OnError(int err, std::string msg)
{
//g_usableApp->window()->setInputCaptureCount(0);
@@ -10,4 +12,18 @@ void OnError(int err, std::string msg)
//clearInstances();
MessageBox(NULL, emsg.c_str(), title.c_str(), MB_OK);
exit(err);
}
void MessageBoxStr(std::string msg)
{
std::string title = g_PlaceholderName;
MessageBox(NULL, msg.c_str(), title.c_str(), MB_OK);
}
void MessageBoxStream(std::stringstream msg)
{
std::string strMsg = msg.str();
std::string title = g_PlaceholderName;
MessageBox(NULL, strMsg.c_str(), title.c_str(), MB_OK);
}