mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-11 14:27:57 -05:00
Thread: Added priority range checking to svcSetThreadPriority and removed priority clamping code from Thread::SetPriority.
This commit is contained in:
@ -62,6 +62,8 @@ s32 ResourceLimit::GetCurrentResourceValue(u32 resource) const {
|
||||
|
||||
s32 ResourceLimit::GetMaxResourceValue(u32 resource) const {
|
||||
switch (resource) {
|
||||
case PRIORITY:
|
||||
return max_priority;
|
||||
case COMMIT:
|
||||
return max_commit;
|
||||
case THREAD:
|
||||
|
Reference in New Issue
Block a user