aboutsummaryrefslogtreecommitdiff
path: root/src/wx
diff options
context:
space:
mode:
authorStapleButter <thetotalworm@gmail.com>2017-03-30 03:31:27 +0200
committerStapleButter <thetotalworm@gmail.com>2017-03-30 03:31:27 +0200
commit46ed4aeeb11b494e667edf83242580c141a3ea11 (patch)
treef7ba0845da859b434c9af4b6b27260ab37e2f208 /src/wx
parent8e5f175f5e1ded3feee72ba358fac7dee41284aa (diff)
one last fix
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)