From 46ed4aeeb11b494e667edf83242580c141a3ea11 Mon Sep 17 00:00:00 2001 From: StapleButter Date: Thu, 30 Mar 2017 03:31:27 +0200 Subject: [PATCH] one last fix --- src/wx/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/wx/main.cpp b/src/wx/main.cpp index 628b4f8f..85568a4f 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)