mirror of
https://github.com/PabloMK7/citra.git
synced 2024-12-26 17:37:19 +00:00
pica: Move mutex lock below tracing check on register write (#210)
Co-authored-by: IndecisiveTurtle <47210458+raphaelthegreat@users.noreply.github.com>
This commit is contained in:
parent
63450b662e
commit
d017955946
|
@ -272,11 +272,11 @@ void StartPicaTracing() {
|
|||
}
|
||||
|
||||
void OnPicaRegWrite(u16 cmd_id, u16 mask, u32 value) {
|
||||
std::lock_guard lock(pica_trace_mutex);
|
||||
|
||||
if (!g_is_pica_tracing)
|
||||
return;
|
||||
|
||||
std::lock_guard lock(pica_trace_mutex);
|
||||
|
||||
pica_trace->writes.push_back(PicaTrace::Write{cmd_id, mask, value});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue