Shutdown the machine before exiting, otherwise we can
segfault if a rom is playing. It also cleanups valgrind output when looking for leaks.
This commit is contained in:
parent
40d342e48f
commit
f0b76ada6d
|
@ -95,7 +95,13 @@ public:
|
||||||
delete history;
|
delete history;
|
||||||
}
|
}
|
||||||
|
|
||||||
void OnQuit(wxCommandEvent& WXUNUSED(event)){Close(true);}
|
void OnQuit(wxCommandEvent& WXUNUSED(event))
|
||||||
|
{
|
||||||
|
execute = false;
|
||||||
|
NDS_DeInit();
|
||||||
|
Close(true);
|
||||||
|
}
|
||||||
|
|
||||||
void OnAbout(wxCommandEvent& WXUNUSED(event))
|
void OnAbout(wxCommandEvent& WXUNUSED(event))
|
||||||
{
|
{
|
||||||
wxMessageBox(
|
wxMessageBox(
|
||||||
|
|
Loading…
Reference in New Issue