fix ROM preloading to also go through EmuThread

This commit is contained in:
Arisotura
2024-10-24 17:48:34 +02:00
parent 1787235e09
commit 3fc065d72d
2 changed files with 16 additions and 19 deletions

View File

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