From 48e3683d202075785dc31b05265faa43fb901882 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sun, 17 Nov 2019 19:41:21 +1000 Subject: [PATCH] HostInterface: Fix load state on boot not loading state --- src/core/host_interface.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/host_interface.cpp b/src/core/host_interface.cpp index f74a6847a..0a1c5d469 100644 --- a/src/core/host_interface.cpp +++ b/src/core/host_interface.cpp @@ -42,6 +42,10 @@ bool HostInterface::BootSystem(const char* filename, const char* state_filename) m_paused = m_settings.start_paused; ConnectControllers(); UpdateSpeedLimiterState(); + + if (state_filename && !LoadState(state_filename)) + return false; + return true; }