30 #if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
35 #elif OGRE_PLATFORM == OGRE_PLATFORM_APPLE
37 #elif OGRE_PLATFORM == OGRE_PLATFORM_LINUX
45 LOG(
fmt::format(
"[RoR|ErrorPopupDialog] {}: {}", title.asUTF8(), err.asUTF8()));
46 Ogre::UTFString infoText =
_L(
"An internal error occured in Rigs of Rods.\n\nTechnical details below: \n\n");
59 #if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
60 int mtype = MB_ICONERROR;
62 mtype = MB_ICONINFORMATION;
63 MessageBoxW(NULL, err.asWStr_c_str(), title.asWStr_c_str(), MB_OK | mtype | MB_TOPMOST);
64 #elif OGRE_PLATFORM == OGRE_PLATFORM_LINUX
65 printf(
"\n\n%s: %s\n\n", title.asUTF8_c_str(), err.asUTF8_c_str());
66 #elif OGRE_PLATFORM == OGRE_PLATFORM_APPLE
67 printf(
"\n\n%s: %s\n\n", title.asUTF8_c_str(), err.asUTF8_c_str());