From c67e877d82fa98d94ff67407e3008aa6d03c33b4 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Fri, 8 May 2020 00:57:46 +1000 Subject: [PATCH] CommonHostInterface: Fix -state command line parameter not working --- src/frontend-common/common_host_interface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend-common/common_host_interface.cpp b/src/frontend-common/common_host_interface.cpp index 2135e5eb2..b27f6d20b 100644 --- a/src/frontend-common/common_host_interface.cpp +++ b/src/frontend-common/common_host_interface.cpp @@ -248,7 +248,7 @@ bool CommonHostInterface::ParseCommandLineParameters(int argc, char* argv[], // init user directory early since we need it for save states SetUserDirectory(); - if (state_index.has_value() && !state_filename.empty()) + if (state_index.has_value() && state_filename.empty()) { // if a save state is provided, whether a boot filename was provided determines per-game/local if (boot_filename.empty())