mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-25 05:40:14 +00:00
Thread: Fix SetWaitSynchronizationOutput, SetWaitSynchronizationResult for this == GetCurrentThread()
This commit is contained in:
parent
a58bc0919e
commit
e33f17b046
@ -579,11 +579,19 @@ void Reschedule() {
|
||||
}
|
||||
|
||||
void Thread::SetWaitSynchronizationResult(ResultCode result) {
|
||||
context.cpu_registers[0] = result.raw;
|
||||
if (this == GetCurrentThread()) {
|
||||
Core::g_app_core->SetReg(0, result.raw);
|
||||
} else {
|
||||
context.cpu_registers[0] = result.raw;
|
||||
}
|
||||
}
|
||||
|
||||
void Thread::SetWaitSynchronizationOutput(s32 output) {
|
||||
context.cpu_registers[1] = output;
|
||||
if (this == GetCurrentThread()) {
|
||||
Core::g_app_core->SetReg(1, output);
|
||||
} else {
|
||||
context.cpu_registers[1] = output;
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
Reference in New Issue
Block a user