|
|
@@ -74,6 +74,8 @@ inline void SetFPUState(unsigned control)
|
|
|
|
|
|
#endif
|
|
|
|
|
|
+#include <SDL/SDL.h>
|
|
|
+
|
|
|
#include "../DebugNew.h"
|
|
|
|
|
|
namespace Urho3D
|
|
|
@@ -123,11 +125,7 @@ void InitFPU()
|
|
|
|
|
|
void ErrorDialog(const String& title, const String& message)
|
|
|
{
|
|
|
-#ifdef WIN32
|
|
|
- MessageBoxW(0, WString(message).CString(), WString(title).CString(), 0);
|
|
|
-#else
|
|
|
- PrintLine(message, true);
|
|
|
-#endif
|
|
|
+ SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, title.CString(), message.CString(), 0);
|
|
|
}
|
|
|
|
|
|
void ErrorExit(const String& message, int exitCode)
|