mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 13:48:56 +00:00
Merge pull request #12695 from mitaclaw/core-global-system-4
Core::IsRunning: Avoid Global System Accessor
This commit is contained in:
commit
c23562b7b5
25 changed files with 90 additions and 74 deletions
|
@ -425,7 +425,7 @@ bool MovieManager::IsNetPlayRecording() const
|
|||
// NOTE: Host Thread
|
||||
void MovieManager::ChangePads()
|
||||
{
|
||||
if (!Core::IsRunning())
|
||||
if (!Core::IsRunning(m_system))
|
||||
return;
|
||||
|
||||
ControllerTypeArray controllers{};
|
||||
|
@ -572,7 +572,7 @@ bool MovieManager::BeginRecordingInput(const ControllerTypeArray& controllers,
|
|||
ConfigLoaders::SaveToDTM(&header);
|
||||
Config::AddLayer(ConfigLoaders::GenerateMovieConfigLoader(&header));
|
||||
|
||||
if (Core::IsRunning())
|
||||
if (Core::IsRunning(m_system))
|
||||
Core::UpdateWantDeterminism(m_system);
|
||||
};
|
||||
Core::RunOnCPUThread(m_system, start_recording, true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue