mirror of
https://github.com/PabloMK7/citra.git
synced 2024-11-28 02:14:07 +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
1 changed files with 2 additions and 2 deletions
|
@ -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