Call emuPause before loading a ROM so we don't crash if one is already loaded
This commit is contained in:
parent
6ad0e8d61a
commit
0d37a0a5fc
|
@ -2737,7 +2737,8 @@ bool MelonApplication::event(QEvent *event)
|
|||
if (event->type() == QEvent::FileOpen)
|
||||
{
|
||||
QFileOpenEvent *openEvent = static_cast<QFileOpenEvent*>(event);
|
||||
printf("%s\n", openEvent->file().toUtf8().constData());
|
||||
|
||||
emuThread->emuPause();
|
||||
mainWindow->loadROM(openEvent->file());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue