]> git.jsancho.org Git - lugaru.git/blobdiff - Source/main.cpp
Trying to handle a bit better missing files and avoid segfaults
[lugaru.git] / Source / main.cpp
index 33a7b37edb679baba5a81e7ea318d0ef3a11e27c..9e1c1102eb405a6b2c5c5609115fc6249edf198c 100644 (file)
@@ -111,11 +111,6 @@ static void GLAPIENTRY glDeleteTextures_doNothing(GLsizei n, const GLuint *textu
 }
 #endif // __MINGW32__
 
-#ifdef MessageBox
-#undef MessageBox
-#endif
-#define MessageBox(hwnd,text,title,flags) STUBBED("msgbox")
-
 // Menu defs
 
 int kContextWidth;
@@ -749,7 +744,7 @@ int main(int argc, char **argv)
 
         LOG(e);
 
-        MessageBox(g_windowHandle, error.what(), "ERROR", MB_OK | MB_ICONEXCLAMATION);
+        SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "Exception catched", error.what(), NULL);
 
         return -1;
     }