mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix loading games from archives (fixes #881)
This commit is contained in:
parent
8a5183df0b
commit
9a9aba86e7
|
@ -102,7 +102,10 @@ CoreController* CoreManager::loadGame(VFile* vf, const QString& path, const QStr
|
|||
QByteArray bytes(path.toUtf8());
|
||||
separatePath(bytes.constData(), nullptr, core->dirs.baseName, nullptr);
|
||||
|
||||
QFileInfo info(base + "/" + path);
|
||||
QFileInfo info(base);
|
||||
if (info.isDir()) {
|
||||
info = QFileInfo(base + "/" + path);
|
||||
}
|
||||
bytes = info.dir().canonicalPath().toUtf8();
|
||||
mDirectorySetAttachBase(&core->dirs, VDirOpen(bytes.constData()));
|
||||
mCoreAutoloadSave(core);
|
||||
|
|
Loading…
Reference in New Issue