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)
|
void DesmumeFrame::pause(wxCommandEvent& event)
|
||||||
{
|
{
|
||||||
|
if (gameInfo.romdata == NULL)
|
||||||
|
return;
|
||||||
|
|
||||||
if (execute) {
|
if (execute) {
|
||||||
execute=false;
|
execute=false;
|
||||||
SPU_Pause(1);
|
SPU_Pause(1);
|
||||||
|
|
Loading…
Reference in New Issue