mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-23 06:10:03 -06:00
fix ROM preloading to also go through EmuThread
This commit is contained in:
@ -250,10 +250,8 @@ bool MelonApplication::event(QEvent *event)
|
||||
MainWindow* win = inst->getMainWindow();
|
||||
QFileOpenEvent *openEvent = static_cast<QFileOpenEvent*>(event);
|
||||
|
||||
inst->getEmuThread()->emuPause();
|
||||
const QStringList file = win->splitArchivePath(openEvent->file(), true);
|
||||
if (!win->preloadROMs(file, {}, true))
|
||||
inst->getEmuThread()->emuUnpause();
|
||||
win->preloadROMs(file, {}, true);
|
||||
}
|
||||
|
||||
return QApplication::event(event);
|
||||
|
Reference in New Issue
Block a user