aboutsummaryrefslogtreecommitdiff
path: root/src/wx
diff options
context:
space:
mode:
Diffstat (limited to 'src/wx')
-rw-r--r--src/wx/main.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/wx/main.cpp b/src/wx/main.cpp
index 628b4f8..85568a4 100644
--- a/src/wx/main.cpp
+++ b/src/wx/main.cpp
@@ -106,8 +106,6 @@ bool wxApp_melonDS::OnInit()
int wxApp_melonDS::OnExit()
{
- emuthread->EmuPause();
- emuthread->EmuExit();
emuthread->Wait();
delete emuthread;
@@ -169,6 +167,9 @@ MainFrame::MainFrame()
void MainFrame::OnClose(wxCloseEvent& event)
{
+ emuthread->EmuPause();
+ emuthread->EmuExit();
+
NDS::DeInit();
if (joy)