mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-27 07:20:49 +00:00
Revert part of 289b0eb
which broke some games.
Although defAction isn't a good solution, removing it outright seems to break things.
This commit is contained in:
parent
53b0a87de3
commit
7d0e78b0f0
@ -776,15 +776,20 @@ int sceIoChangeAsyncPriority(int id, int priority)
|
||||
return 0;
|
||||
}
|
||||
|
||||
u32 __IoClose(SceUID actedFd, int closedFd)
|
||||
{
|
||||
DEBUG_LOG(HLE, "Deferred IoClose(%d, %d)", actedFd, closedFd);
|
||||
__IoCompleteAsyncIO(closedFd);
|
||||
return kernelObjects.Destroy < FileNode > (closedFd);
|
||||
}
|
||||
|
||||
int sceIoCloseAsync(int id)
|
||||
{
|
||||
DEBUG_LOG(HLE, "sceIoCloseAsync(%d)", id);
|
||||
//sceIoClose();
|
||||
// TODO: Not sure this is a good solution. Seems like you can defer one per fd.
|
||||
//defAction = &__IoClose;
|
||||
//defParam = id;
|
||||
sceIoClose(id);
|
||||
__IoCompleteAsyncIO(id);
|
||||
defAction = &__IoClose;
|
||||
defParam = id;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user