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:
Unknown W. Brackets 2013-01-18 01:22:48 -08:00
parent 53b0a87de3
commit 7d0e78b0f0

View File

@ -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;
}