System: Fix pause on start

This commit is contained in:
Connor McLaughlin 2020-12-27 00:28:04 +10:00
parent 3cd3d1c09d
commit cbcbb675d6
2 changed files with 3 additions and 3 deletions

View File

@ -560,7 +560,7 @@ bool Boot(const SystemBootParameters& params)
return false; return false;
} }
if (params.start_paused) if (g_settings.start_paused || params.override_start_paused.value_or(false))
{ {
DebugAssert(s_state == State::Running); DebugAssert(s_state == State::Running);
s_state = State::Paused; s_state = State::Paused;
@ -705,7 +705,7 @@ bool Boot(const SystemBootParameters& params)
} }
// Good to go. // Good to go.
s_state = params.start_paused ? State::Paused : State::Running; s_state = (g_settings.start_paused || params.override_start_paused.value_or(false)) ? State::Paused : State::Running;
return true; return true;
} }

View File

@ -27,11 +27,11 @@ struct SystemBootParameters
std::string filename; std::string filename;
std::optional<bool> override_fast_boot; std::optional<bool> override_fast_boot;
std::optional<bool> override_fullscreen; std::optional<bool> override_fullscreen;
std::optional<bool> override_start_paused;
std::unique_ptr<ByteStream> state_stream; std::unique_ptr<ByteStream> state_stream;
u32 media_playlist_index = 0; u32 media_playlist_index = 0;
bool load_image_to_ram = false; bool load_image_to_ram = false;
bool force_software_renderer = false; bool force_software_renderer = false;
bool start_paused = false;
}; };
namespace System { namespace System {