diff --git a/src/core/host_interface.cpp b/src/core/host_interface.cpp index b9c4208b..e8c351c3 100644 --- a/src/core/host_interface.cpp +++ b/src/core/host_interface.cpp @@ -62,12 +62,8 @@ bool HostInterface::BootSystem(std::shared_ptr parameters) if (!System::Boot(*parameters)) { - if (!System::IsStartupCancelled()) - { - ReportError( - g_host_interface->TranslateString("System", "System failed to boot. The log may contain more information.")); - } - + ReportError( + g_host_interface->TranslateString("System", "System failed to boot. The log may contain more information.")); m_audio_stream.reset(); ReleaseHostDisplay(); return false; diff --git a/src/core/system.cpp b/src/core/system.cpp index 2fa56b83..5879dd61 100644 --- a/src/core/system.cpp +++ b/src/core/system.cpp @@ -95,7 +95,6 @@ static void UpdateRunningGame(const char* path, CDImage* image); static bool CheckForSBIFile(CDImage* image); static State s_state = State::Shutdown; -static std::atomic_bool s_startup_cancelled{false}; static ConsoleRegion s_region = ConsoleRegion::NTSC_U; TickCount g_ticks_per_second = MASTER_CLOCK; @@ -140,11 +139,6 @@ bool IsValid() return s_state != State::Shutdown && s_state != State::Starting; } -bool IsStartupCancelled() -{ - return s_startup_cancelled.load(); -} - ConsoleRegion GetRegion() { return s_region; @@ -516,9 +510,7 @@ bool RecreateGPU(GPURenderer renderer, bool update_display /* = true*/) g_gpu.reset(); if (!CreateGPU(renderer)) { - if (!IsStartupCancelled()) - g_host_interface->ReportError("Failed to recreate GPU."); - + g_host_interface->ReportError("Failed to recreate GPU."); System::Shutdown(); return false; } @@ -591,7 +583,6 @@ bool ShouldCheckForImagePatches() bool Boot(const SystemBootParameters& params) { s_state = State::Starting; - s_startup_cancelled.store(false); s_region = g_settings.region; if (params.state_stream) @@ -765,13 +756,6 @@ bool Initialize(bool force_software_renderer) if (g_settings.gpu_pgxp_enable) PGXP::Initialize(); - // Was startup cancelled? (e.g. shading compilers took too long and the user closed the application) - if (IsStartupCancelled()) - { - Shutdown(); - return false; - } - // CPU code cache must happen after GPU, because it might steal our address space. CPU::CodeCache::Initialize(); diff --git a/src/core/system.h b/src/core/system.h index 27614f21..d8f85438 100644 --- a/src/core/system.h +++ b/src/core/system.h @@ -66,8 +66,6 @@ State GetState(); bool IsShutdown(); bool IsValid(); -bool IsStartupCancelled(); - ConsoleRegion GetRegion(); bool IsPALRegion();