mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 23:29:44 -06:00
Merge pull request #12279 from Dentomologist/opengl_single_core_fix_start_movie_recording_crash
Movie: Fix crash when starting input recording on OpenGL single core
This commit is contained in:
@ -545,7 +545,7 @@ bool BeginRecordingInput(const ControllerTypeArray& controllers,
|
|||||||
(controllers == ControllerTypeArray{} && wiimotes == WiimoteEnabledArray{}))
|
(controllers == ControllerTypeArray{} && wiimotes == WiimoteEnabledArray{}))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
Core::RunAsCPUThread([controllers, wiimotes] {
|
const auto start_recording = [controllers, wiimotes] {
|
||||||
s_controllers = controllers;
|
s_controllers = controllers;
|
||||||
s_wiimotes = wiimotes;
|
s_wiimotes = wiimotes;
|
||||||
s_currentFrame = s_totalFrames = 0;
|
s_currentFrame = s_totalFrames = 0;
|
||||||
@ -615,7 +615,8 @@ bool BeginRecordingInput(const ControllerTypeArray& controllers,
|
|||||||
|
|
||||||
if (Core::IsRunning())
|
if (Core::IsRunning())
|
||||||
Core::UpdateWantDeterminism();
|
Core::UpdateWantDeterminism();
|
||||||
});
|
};
|
||||||
|
Core::RunOnCPUThread(start_recording, true);
|
||||||
|
|
||||||
Core::DisplayMessage("Starting movie recording", 2000);
|
Core::DisplayMessage("Starting movie recording", 2000);
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user