WFSI: Implement CHECK_HAS_SPACE.
This commit is contained in:
parent
15f25783a8
commit
e004709b69
|
@ -373,6 +373,23 @@ IPCCommandResult WFSI::IOCtl(const IOCtlRequest& request)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case IOCTL_WFSI_CHECK_HAS_SPACE:
|
||||||
|
WARN_LOG(IOS, "IOCTL_WFSI_CHECK_HAS_SPACE: returning true");
|
||||||
|
|
||||||
|
// TODO(wfs): implement this properly.
|
||||||
|
// 1 is returned if there is free space, 0 otherwise.
|
||||||
|
//
|
||||||
|
// WFSI builds a path depending on the import state
|
||||||
|
// /vol/VOLUME_ID/title/GROUP_ID/GAME_ID
|
||||||
|
// /vol/VOLUME_ID/_install/GAME_ID
|
||||||
|
// then removes everything after the last path separator ('/')
|
||||||
|
// it then calls WFSISrvGetFreeBlkNum (ioctl 0x5a, aliased to 0x5b) with that path.
|
||||||
|
// If the ioctl fails, WFSI returns 0.
|
||||||
|
// If the ioctl succeeds, WFSI returns 0 or 1 depending on the three u32s in the input buffer
|
||||||
|
// and the three u32s returned by WFSSRV (TODO: figure out what it does)
|
||||||
|
return_error_code = 1;
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
// TODO(wfs): Should be returning an error. However until we have
|
// TODO(wfs): Should be returning an error. However until we have
|
||||||
// everything properly stubbed it's easier to simulate the methods
|
// everything properly stubbed it's easier to simulate the methods
|
||||||
|
|
|
@ -92,6 +92,8 @@ private:
|
||||||
IOCTL_WFSI_SET_FST_BUFFER = 0x8e,
|
IOCTL_WFSI_SET_FST_BUFFER = 0x8e,
|
||||||
|
|
||||||
IOCTL_WFSI_LOAD_DOL = 0x90,
|
IOCTL_WFSI_LOAD_DOL = 0x90,
|
||||||
|
|
||||||
|
IOCTL_WFSI_CHECK_HAS_SPACE = 0x95,
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
} // namespace Device
|
} // namespace Device
|
||||||
|
|
Loading…
Reference in New Issue