mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-06-28 09:59:41 -06:00
Call emuPause before loading a ROM so we don't crash if one is already loaded
This commit is contained in:
@ -2737,7 +2737,8 @@ bool MelonApplication::event(QEvent *event)
|
|||||||
if (event->type() == QEvent::FileOpen)
|
if (event->type() == QEvent::FileOpen)
|
||||||
{
|
{
|
||||||
QFileOpenEvent *openEvent = static_cast<QFileOpenEvent*>(event);
|
QFileOpenEvent *openEvent = static_cast<QFileOpenEvent*>(event);
|
||||||
printf("%s\n", openEvent->file().toUtf8().constData());
|
|
||||||
|
emuThread->emuPause();
|
||||||
mainWindow->loadROM(openEvent->file());
|
mainWindow->loadROM(openEvent->file());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user