aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStapleButter <thetotalworm@gmail.com>2017-07-05 21:37:28 +0200
committerStapleButter <thetotalworm@gmail.com>2017-07-05 21:37:28 +0200
commitd357b1c2ac4365a860e6c98b105b16fd4ac7864d (patch)
treeb5397962816c5c8cd0914d3b8dd6ee9bb9022650
parent4a992dbfd72df70f883c9e367389e8fdf1dc18c6 (diff)
apparently they suck at keeping their SDL distributions up to date
-rw-r--r--src/wx/main.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/wx/main.cpp b/src/wx/main.cpp
index 6897757..4f15b94 100644
--- a/src/wx/main.cpp
+++ b/src/wx/main.cpp
@@ -29,6 +29,12 @@
#include "EmuConfig.h"
+// blarg
+#ifndef SDL_PIXELFORMAT_RGBA32
+#define SDL_PIXELFORMAT_RGBA32 SDL_PIXELFORMAT_ABGR8888
+#endif // SDL_PIXELFORMAT_RGBA32
+
+
wxIMPLEMENT_APP_NO_MAIN(wxApp_melonDS);
@@ -99,7 +105,7 @@ bool wxApp_melonDS::OnInit()
printf("melonDS " MELONDS_VERSION "\n" MELONDS_URL "\n");
Config::Load();
-
+
if (!_fileexists("bios7.bin") || !_fileexists("bios9.bin") || !_fileexists("firmware.bin"))
{
wxMessageBox(
@@ -111,7 +117,7 @@ bool wxApp_melonDS::OnInit()
"Make sure that the files can be accessed.",
"melonDS",
wxICON_ERROR);
-
+
return false;
}