mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Fix sceIoCloseAsync so it closes on wait.
Oops.
This commit is contained in:
parent
ea11c36091
commit
c1d72b4210
1 changed files with 5 additions and 0 deletions
|
@ -231,6 +231,11 @@ void __IoAsyncNotify(u64 userdata, int cyclesLate) {
|
|||
if (Memory::IsValidAddress(address) && f) {
|
||||
Memory::Write_U64((u64) f->asyncResult, address);
|
||||
}
|
||||
|
||||
// If this was a sceIoCloseAsync, we should close it at this point.
|
||||
if (f->closePending) {
|
||||
kernelObjects.Destroy<FileNode>(fd);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue