aboutsummaryrefslogtreecommitdiff
path: root/src/libui_sdl/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libui_sdl/main.cpp')
-rw-r--r--src/libui_sdl/main.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libui_sdl/main.cpp b/src/libui_sdl/main.cpp
index ede2576..dc741e4 100644
--- a/src/libui_sdl/main.cpp
+++ b/src/libui_sdl/main.cpp
@@ -20,6 +20,7 @@
#include <time.h>
#include <stdio.h>
#include <string.h>
+#include <string>
#ifndef __WIN32__
#include <glib.h>
@@ -904,8 +905,6 @@ void UpdateFPSLimit(void* data)
int EmuThreadFunc(void* burp)
{
- NDS::Init();
-
MainScreenPos[0] = 0;
MainScreenPos[1] = 0;
MainScreenPos[2] = 0;
@@ -2966,6 +2965,8 @@ int main(int argc, char** argv)
Joystick = NULL;
OpenJoystick();
+ NDS::Init();
+
EmuRunning = 2;
RunningSomething = false;
EmuThread = SDL_CreateThread(EmuThreadFunc, "melonDS magic", NULL);