From cd2f6d1f68e49994380814ddd57bebe954b292f1 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sun, 16 Feb 2020 00:14:58 +0900 Subject: [PATCH] HostInterface: Only display error when loading resume state if boot anyway flag isn't set --- src/core/host_interface.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/core/host_interface.cpp b/src/core/host_interface.cpp index 45f8a4af3..652b5ca84 100644 --- a/src/core/host_interface.cpp +++ b/src/core/host_interface.cpp @@ -497,15 +497,12 @@ bool HostInterface::ResumeSystemFromState(const char* filename, bool boot_on_fai return false; } } - else + else if (!boot_on_failure) { ReportFormattedError("Resume save state not found for '%s' ('%s').", m_system->GetRunningCode().c_str(), m_system->GetRunningTitle().c_str()); - if (!boot_on_failure) - { - DestroySystem(); - return false; - } + DestroySystem(); + return false; } return true;