one last fix

This commit is contained in:
StapleButter 2017-03-30 03:31:27 +02:00
parent 8e5f175f5e
commit 46ed4aeeb1
1 changed files with 3 additions and 2 deletions

View File

@ -106,8 +106,6 @@ bool wxApp_melonDS::OnInit()
int wxApp_melonDS::OnExit() int wxApp_melonDS::OnExit()
{ {
emuthread->EmuPause();
emuthread->EmuExit();
emuthread->Wait(); emuthread->Wait();
delete emuthread; delete emuthread;
@ -169,6 +167,9 @@ MainFrame::MainFrame()
void MainFrame::OnClose(wxCloseEvent& event) void MainFrame::OnClose(wxCloseEvent& event)
{ {
emuthread->EmuPause();
emuthread->EmuExit();
NDS::DeInit(); NDS::DeInit();
if (joy) if (joy)