31#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
36#elif OGRE_PLATFORM == OGRE_PLATFORM_APPLE
38#elif OGRE_PLATFORM == OGRE_PLATFORM_LINUX
48 LOG(fmt::format(
"[RoR|ErrorPopupDialog] {}: {}", title, err));
49 std::string infoText =
_L(
"An internal error occured in Rigs of Rods.\n\nTechnical details below: \n\n");
62#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
63 int mtype = MB_ICONERROR;
65 mtype = MB_ICONINFORMATION;
68 MessageBoxW(NULL, err_w.c_str(), title_w.c_str(), MB_OK | mtype | MB_TOPMOST);
69#elif OGRE_PLATFORM == OGRE_PLATFORM_LINUX
70 printf(
"\n\n%s: %s\n\n", title.c_str(), err.c_str());
71#elif OGRE_PLATFORM == OGRE_PLATFORM_APPLE
72 printf(
"\n\n%s: %s\n\n", title.c_str(), err.c_str());
void LOG(const char *msg)
Legacy alias - formerly a macro.
std::wstring Utf8ToWideChar(std::string input_utf8)
static int ShowMsgBox(const std::string &title, const std::string &err, int type)
shows a generic message box
static int ShowInfo(const std::string &title, const std::string &message)
shows a simple info message box
static int ShowError(const std::string &title, const std::string &message)
shows a simple error message box