Skip to content

Commit

Permalink
Only push directory if we find a MO INI file
Browse files Browse the repository at this point in the history
  • Loading branch information
ashemedai committed Jan 1, 2024
1 parent 5adb1ec commit ce87bdd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/instancemanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,12 @@ std::vector<QString> InstanceManager::globalInstancePaths() const

for (auto&& d : dirs) {
if (!ignore.contains(QFileInfo(d).fileName().toLower())) {
list.push_back(root.filePath(d));
QString filePath = root.filePath(d + "/" + "ModOrganizer.ini");
log::debug("Found INI at path '{}'", filePath);

if (QFile::exists(filePath)) {
list.push_back(root.filePath(d));
}
}
}

Expand Down

0 comments on commit ce87bdd

Please sign in to comment.