wx: don't crash on pause if no rom is loaded
A different version of a patch from Jan Bücken (nooris), #3288648
This commit is contained in:
parent
18110b0db2
commit
64d9792067
|
@ -524,6 +524,9 @@ void DesmumeFrame::onIdle(wxIdleEvent &event)
|
|||
|
||||
void DesmumeFrame::pause(wxCommandEvent& event)
|
||||
{
|
||||
if (gameInfo.romdata == NULL)
|
||||
return;
|
||||
|
||||
if (execute) {
|
||||
execute=false;
|
||||
SPU_Pause(1);
|
||||
|
|
Loading…
Reference in New Issue