mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix loading ROMs from an archive
This commit is contained in:
parent
d618bf8d7b
commit
d74092b291
|
@ -104,7 +104,7 @@ signals:
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void loadGame(const QString& path);
|
void loadGame(const QString& path);
|
||||||
void loadGame(VFile* vf, const QString& base = QString());
|
void loadGame(VFile* vf, const QString& base);
|
||||||
void loadBIOS(const QString& path);
|
void loadBIOS(const QString& path);
|
||||||
void loadSave(const QString& path, bool temporary = true);
|
void loadSave(const QString& path, bool temporary = true);
|
||||||
void yankPak();
|
void yankPak();
|
||||||
|
|
|
@ -351,10 +351,10 @@ void Window::selectROMInArchive() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
ArchiveInspector* archiveInspector = new ArchiveInspector(filename);
|
ArchiveInspector* archiveInspector = new ArchiveInspector(filename);
|
||||||
connect(archiveInspector, &QDialog::accepted, [this, archiveInspector]() {
|
connect(archiveInspector, &QDialog::accepted, [this, archiveInspector, filename]() {
|
||||||
VFile* output = archiveInspector->selectedVFile();
|
VFile* output = archiveInspector->selectedVFile();
|
||||||
if (output) {
|
if (output) {
|
||||||
m_controller->loadGame(output);
|
m_controller->loadGame(output, filename);
|
||||||
}
|
}
|
||||||
archiveInspector->close();
|
archiveInspector->close();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue