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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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