This commit is contained in:
kalaposfos13 2025-03-23 15:14:11 +01:00
parent a6a8f2a00b
commit e2592c8610
2 changed files with 3 additions and 2 deletions

View File

@ -225,7 +225,8 @@ void EditorDialog::loadInstalledGames() {
QDir parentFolder(installDir);
QFileInfoList fileList = parentFolder.entryInfoList(QDir::Dirs | QDir::NoDotAndDotDot);
for (const auto& fileInfo : fileList) {
if (fileInfo.isDir() && (!fileInfo.filePath().endsWith("-UPDATE") || !fileInfo.filePath().endsWith("-patch"))) {
if (fileInfo.isDir() && (!fileInfo.filePath().endsWith("-UPDATE") ||
!fileInfo.filePath().endsWith("-patch"))) {
gameComboBox->addItem(fileInfo.fileName()); // Add game name to combo box
}
}