mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-27 08:05:41 +00:00
Fix -resume causing a quiet exit if there is no resume savestate
This commit is contained in:
parent
ccaff2e7cd
commit
95d5417017
|
@ -373,10 +373,17 @@ bool CommonHostInterface::ParseCommandLineParameters(int argc, char* argv[],
|
|||
{
|
||||
state_filename = GetGameSaveStateFileName(game_code.c_str(), *state_index);
|
||||
if (state_filename.empty() || !FileSystem::FileExists(state_filename.c_str()))
|
||||
{
|
||||
if (state_index >= 0) // Do not exit if -resume is specified, but resume save state does not exist
|
||||
{
|
||||
Log_ErrorPrintf("Could not find file for game '%s' save state %d", game_code.c_str(), *state_index);
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
state_filename.clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue