Io: Change async thread priority if running.
Really thought I'd already done this, must've made a mistake... Fixes #12400.
This commit is contained in:
parent
4065fae262
commit
f63daf8185
5 changed files with 33 additions and 11 deletions
|
@ -1973,6 +1973,10 @@ static int sceIoChangeAsyncPriority(int id, int priority) {
|
|||
return hleLogError(SCEIO, error, "bad file descriptor");
|
||||
}
|
||||
|
||||
if (asyncThreads[id] && !asyncThreads[id]->Stopped()) {
|
||||
asyncThreads[id]->ChangePriority(priority);
|
||||
}
|
||||
|
||||
asyncParams[id].priority = priority;
|
||||
return hleLogSuccessI(SCEIO, 0);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue