mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 21:39:52 +00:00
Io: Return a better error code for sceIoCancel.
This is very rarely used and doesn't seem to work.
This commit is contained in:
parent
593e48b865
commit
507b01a93e
@ -1265,17 +1265,14 @@ static u32 sceIoGetDevType(int id) {
|
|||||||
|
|
||||||
static u32 sceIoCancel(int id)
|
static u32 sceIoCancel(int id)
|
||||||
{
|
{
|
||||||
ERROR_LOG_REPORT(SCEIO, "UNIMPL sceIoCancel(%d)", id);
|
|
||||||
u32 error;
|
u32 error;
|
||||||
FileNode *f = __IoGetFd(id, error);
|
FileNode *f = __IoGetFd(id, error);
|
||||||
if (f) {
|
if (f) {
|
||||||
// TODO: Cancel the async operation if possible?
|
// It seems like this is unsupported for UMDs and memory sticks, based on tests.
|
||||||
|
return hleReportError(SCEIO, SCE_KERNEL_ERROR_UNSUP, "unimplemented or unsupported");
|
||||||
} else {
|
} else {
|
||||||
ERROR_LOG(SCEIO, "sceIoCancel: unknown id %d", id);
|
return hleLogError(SCEIO, SCE_KERNEL_ERROR_BADF, "invalid fd");
|
||||||
error = SCE_KERNEL_ERROR_BADF;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return error;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static u32 npdrmLseek(FileNode *f, s32 where, FileMove whence)
|
static u32 npdrmLseek(FileNode *f, s32 where, FileMove whence)
|
||||||
|
Loading…
Reference in New Issue
Block a user