MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / InformGSThread

Method InformGSThread

pcsx2/Recording/InputRecording.cpp:393–405  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

391}
392
393void InputRecording::InformGSThread()
394{
395 TinyString recording_active_message = TinyString::from_format(TRANSLATE_FS("InputRecording", "Input Recording Active: {}"), g_InputRecording.getData().getFilename());
396 TinyString frame_data_message = TinyString::from_format(TRANSLATE_FS("InputRecording", "Frame: {}/{} ({})"), g_InputRecording.getFrameCounter(), g_InputRecording.getData().getTotalFrames(), g_InputRecording.getFrameCounterStateless());
397 TinyString undo_count_message = TinyString::from_format(TRANSLATE_FS("InputRecording", "Undo Count: {}"), g_InputRecording.getData().getUndoCount());
398
399 MTGS::RunOnGSThread([recording_active_message, frame_data_message, undo_count_message](bool is_recording = g_InputRecording.getControls().isRecording()) {
400 g_InputRecordingData.is_recording = is_recording;
401 g_InputRecordingData.recording_active_message = recording_active_message;
402 g_InputRecordingData.frame_data_message = frame_data_message;
403 g_InputRecordingData.undo_count_message = undo_count_message;
404 });
405}

Callers

nothing calls this directly

Calls 5

getFrameCounterMethod · 0.80
getTotalFramesMethod · 0.80
getUndoCountMethod · 0.80
isRecordingMethod · 0.80

Tested by

no test coverage detected