mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-04-20 03:24:49 +00:00
Show a dialog only if no game directories are set (#2690)
* Slightly changed how allInstallDirsDisabled is determined * Show a dialog only if no game directories are set * Changed a comment * Fixed formatting
This commit is contained in:
parent
d8204641fa
commit
69cb4d5787
1 changed files with 2 additions and 6 deletions
|
@ -157,12 +157,8 @@ int main(int argc, char* argv[]) {
|
|||
}
|
||||
}
|
||||
|
||||
bool allInstallDirsDisabled =
|
||||
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 &&
|
||||
!has_command_line_argument) {
|
||||
// If no game directories are set and no command line argument, prompt for it
|
||||
if (Config::getGameInstallDirsEnabled().empty() && !has_command_line_argument) {
|
||||
GameInstallDialog dlg;
|
||||
dlg.exec();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue