mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-23 06:10:03 -06:00
* implement missing graphics (affine BG, rotscaled bitmap sprite)
* fix potential crash upon exit * more work on the input config UI * misc fixes
This commit is contained in:
@ -130,10 +130,18 @@ MainFrame::MainFrame()
|
||||
|
||||
void MainFrame::OnClose(wxCloseEvent& event)
|
||||
{
|
||||
emustatus = 0;
|
||||
emustatuschangemutex->Lock();
|
||||
emustatuschange->Signal();
|
||||
emustatuschangemutex->Unlock();
|
||||
if (emustatus == 1)
|
||||
{
|
||||
emustatus = 0;
|
||||
emustop->Wait();
|
||||
}
|
||||
else
|
||||
{
|
||||
emustatus = 0;
|
||||
emustatuschangemutex->Lock();
|
||||
emustatuschange->Signal();
|
||||
emustatuschangemutex->Unlock();
|
||||
}
|
||||
|
||||
emuthread->Wait();
|
||||
delete emuthread;
|
||||
|
Reference in New Issue
Block a user