VERY experimental Nintendo Switch 2 emulator
C++
Core/Scheduling: Prepare the new priority in the thread queue when svcSetPriority is called
Subvdbc1320923fb
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cppindex 957cbdfee1..0503e50895 100644--- a/src/core/hle/kernel/thread.cpp+++ b/src/core/hle/kernel/thread.cpp@@ -439,6 +439,8 @@ void Thread::SetPriority(s32 priority) {// If thread was ready, adjust queuesif (status == THREADSTATUS_READY)ready_queue.move(this, current_priority, priority);+ else+ ready_queue.prepare(priority);nominal_priority = current_priority = priority;}