mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-30 18:36:58 +03:00
fix: prioritize .ftbapp/version.json in FTB App import (#4207)
This commit is contained in:
commit
6a40ea4e69
1 changed files with 2 additions and 2 deletions
|
|
@ -79,9 +79,9 @@ Modpack parseDirectory(QString path)
|
|||
return {};
|
||||
}
|
||||
|
||||
auto versionsFile = QFileInfo(FS::PathCombine(path, "version.json"));
|
||||
auto versionsFile = QFileInfo(FS::PathCombine(path, ".ftbapp", "version.json"));
|
||||
if (!versionsFile.exists() || !versionsFile.isFile()) {
|
||||
versionsFile = QFileInfo(FS::PathCombine(path, ".ftbapp", "version.json"));
|
||||
versionsFile = QFileInfo(FS::PathCombine(path, "version.json"));
|
||||
}
|
||||
if (!versionsFile.exists() || !versionsFile.isFile()) {
|
||||
return {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue