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 2, 2024
1 parent 5adb1ec commit a1f6742
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/instancemanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,13 @@ 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("Checking for INI at path '{}'", filePath);

if (QFile::exists(filePath)) {
log::debug("Found INI at path '{}'", filePath);
list.push_back(root.filePath(d));
}
}
}

Expand Down

0 comments on commit a1f6742

Please sign in to comment.