mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-17 14:05:47 -04:00
Merge pull request #845 from CookiePLMonster/fix-resume
Fix issues with a -resume parameter
This commit is contained in:
@ -376,8 +376,15 @@ 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()))
|
||||
{
|
||||
Log_ErrorPrintf("Could not find file for game '%s' save state %d", game_code.c_str(), *state_index);
|
||||
return false;
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user