mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-14 22:55:45 -04:00
Qt: Fix double-clicking psexes/psfs in game list
This commit is contained in:
@ -706,6 +706,20 @@ bool CommonHostInterface::SaveState(bool global, s32 slot)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool CommonHostInterface::CanResumeSystemFromFile(const char* filename)
|
||||
{
|
||||
if (GetBoolSettingValue("Main", "SaveStateOnExit", true) && !IsCheevosChallengeModeActive())
|
||||
{
|
||||
const GameListEntry* entry = m_game_list->GetEntryForPath(filename);
|
||||
if (entry)
|
||||
return !entry->code.empty();
|
||||
else
|
||||
return !System::GetGameCodeForPath(filename, true).empty();
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool CommonHostInterface::ResumeSystemFromState(const char* filename, bool boot_on_failure)
|
||||
{
|
||||
SystemBootParameters boot_params;
|
||||
|
Reference in New Issue
Block a user