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:
riccardom 2011-05-15 16:41:51 +00:00
parent 18110b0db2
commit 64d9792067
1 changed files with 3 additions and 0 deletions

View File

@ -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);