Slightly changed how allInstallDirsDisabled is determined (#2688)

This commit is contained in:
Ked
2025-03-26 20:35:43 +08:00
committed by GitHub
parent a1ec8b0a88
commit 7d0631cf26

View File

@@ -158,8 +158,7 @@ int main(int argc, char* argv[]) {
} }
bool allInstallDirsDisabled = bool allInstallDirsDisabled =
std::all_of(Config::getGameInstallDirsEnabled().begin(), std::ranges::all_of(Config::getGameInstallDirsEnabled(), [](bool val) { return !val; });
Config::getGameInstallDirsEnabled().end(), [](bool val) { return !val; });
// If no game directory is set and no command line argument, prompt for it // If no game directory is set and no command line argument, prompt for it
if (Config::getGameInstallDirs().empty() && allInstallDirsDisabled && if (Config::getGameInstallDirs().empty() && allInstallDirsDisabled &&