Commit Graph

4450 Commits

Author SHA1 Message Date
James Benton
9279bf1979 filesystem: Change hostMove to return Result<Error> 2017-03-27 23:19:12 +01:00
James Benton
83ae8c06c0 filesystem: Fix linux build. 2017-03-27 23:19:12 +01:00
James Benton
db795deda0 coreinit: Abort on unrecoverable FS error. 2017-03-27 23:19:12 +01:00
James Benton
60f6931b1d nn_act: Change user's persistent ID to be same as on a real Wii U.
It starts from 0x80000001, not from 1.
2017-03-27 23:19:12 +01:00
James Benton
eea5d504ab nn_save: Change SAVEInit to mount common save directory.
Change SAVEInitSaveDir to only mount user specific save directories.
2017-03-27 23:19:12 +01:00
James Benton
0f783ad652 coreinit: Fix silly copy and pasted bugs in FS{Read,Write}FileWithPos. 2017-03-27 23:19:12 +01:00
James Benton
dd736462af coreinit: Fix missing implicit FSErrorFlag::Exists in FSMountAsync. 2017-03-27 23:19:12 +01:00
James Benton
4aaad29b2e coreinit: Inverse the meaning of error mask.
Will now only return errors specified by errorMask, and will fatal error
on other errors.
2017-03-27 23:19:12 +01:00
James Benton
2891f9b28b coreinit: Fix incorrect size in FS{Read,Write}FileAsync. 2017-03-27 23:19:12 +01:00
James Benton
ef5c14c644 coreinit: Fix copy pasta bug in FSGetInfoByQueryAsync. 2017-03-27 23:19:12 +01:00
James Benton
db753a86d0 kernel: Add FSADevice support for FSACommand::Unmount. 2017-03-27 23:19:12 +01:00
James Benton
f181a817a9 coreinit: Add list of unimplemented FS* functions. 2017-03-27 23:19:12 +01:00
James Benton
2b8f1300d3 coreinit: Implement FSUnmount{Async}. 2017-03-27 23:19:12 +01:00
James Benton
1eb5b38e00 coreinit: Fix check for vec paddr in ipcPrepareIoctlvRequest.
Should only fail when paddr = nullptr if len != 0.
2017-03-27 23:19:12 +01:00
James Benton
fe422acad7 kernel: Add FSADevice support for FSACommand::Mount. 2017-03-27 23:19:12 +01:00
James Benton
bd91bc98d1 coreinit: Implement FSMount{Async}. 2017-03-27 23:19:12 +01:00
James Benton
35f40d211c decaf: Add support for /dev/sdcard01.
Set path in config as system/sdcard-path.
Set path on command line as --sdcard-path <path>.
2017-03-27 23:19:12 +01:00
James Benton
d6c90d08ec coreinit: Implement FSGetMountSource{Next}{Async}. 2017-03-27 23:19:12 +01:00
James Benton
d761ba13b6 kernel: Add missing entry population in FSADevice::readDir. 2017-03-27 23:19:12 +01:00
James Benton
2e4077d00f coreinit: Fix wrong order of arguments in FSReadFileWithPos. 2017-03-27 23:19:12 +01:00
James Benton
8a6a3ab4fb coreinit: Restore missing ioctlv paddr for finishReadCmd and finishWriteCmd. 2017-03-27 23:19:12 +01:00
James Benton
db02f1df12 coreinit: Fix FSGetErrorCodeForViewer where blockBody is nullptr. 2017-03-27 23:19:12 +01:00
James Benton
1b5b530903 filesystem: Fix incorrect return values in openFile and addFolder. 2017-03-27 23:19:12 +01:00
James Benton
782e1055f1 kernel: Implement missing commands from FSADevice. 2017-03-27 23:19:12 +01:00
James Benton
50aff2d775 filesystem: Return error codes from filesystem functions. 2017-03-27 23:19:12 +01:00
James Benton
b71780780c coreinit: Implement FSGetDirSize{Async}. 2017-03-27 23:19:12 +01:00
James Benton
a04131e4dc kernel: Implement FSADevice ioctlv command WriteFile. 2017-03-27 23:19:12 +01:00
James Benton
9ba7f85426 coreinit: Implement FSGetStatFile{Async}. 2017-03-27 23:19:12 +01:00
James Benton
8a87553552 coreinit: Implement fsCmdBlockFinishCmd for getInfoByQuery. 2017-03-27 23:19:12 +01:00
James Benton
69229767ca coreinit: Implement FSTruncateFile{Async}. 2017-03-27 23:19:12 +01:00
James Benton
70a5a55150 coreinit: Implement FSIsEof{Async}. 2017-03-27 23:19:12 +01:00
James Benton
cc5639a8ba coreinit: Add FSMountSource structure. 2017-03-27 23:19:12 +01:00
James Benton
12484deec6 coreinit: Implement FSWriteFile{WithPos}{Async}. 2017-03-27 23:19:12 +01:00
James Benton
02555b2ac2 coreinit: Implement FSGet{Last}ErrorCodeForViewer. 2017-03-27 23:19:12 +01:00
James Benton
f05e7323d8 coreinit: Add missing register for FSGetStateChangeInfo and FSSetStateChangeNotification. 2017-03-27 23:19:12 +01:00
James Benton
5f1c460514 coreinit: Implement FSGetLastError. 2017-03-27 23:19:12 +01:00
James Benton
af4f16c010 coreinit: Implement FSGetClientNum. 2017-03-27 23:19:12 +01:00
James Benton
27a96d8289 coreinit: Implement FSGetVolumeState. 2017-03-27 23:19:12 +01:00
James Benton
9d523be655 coreinit: Implement FS{Get,Set}EmulatedError. 2017-03-27 23:19:12 +01:00
James Benton
185a1d0bcd coreinit: Implement FSGetCurrentCmdBlock. 2017-03-27 23:19:12 +01:00
James Benton
64d971ecf7 coreinit: Implement FSGetFSMessage.
I don't think anything ever will use this function, but it's exported nontheless.
2017-03-27 23:19:12 +01:00
James Benton
dd0201b400 coreinit: Implement FS{Get,Set}CmdPriority. 2017-03-27 23:19:12 +01:00
James Benton
719abd1171 coreinit: Implement FSFlushFile{Async}. 2017-03-27 23:19:12 +01:00
James Benton
26fa562cd6 coreinit: Implement FS{Get,Set}UserData. 2017-03-27 23:19:12 +01:00
James Benton
66fe69c719 coreinit: Implement FSReadDir{Async}. 2017-03-27 23:19:12 +01:00
James Benton
badb476806 coreinit: Implement FSRewindDir{Async}. 2017-03-27 23:19:12 +01:00
James Benton
8319d41220 coreinit: Implement FSCloseDir{Async}. 2017-03-27 23:19:12 +01:00
James Benton
7fa5a0f0e6 nn_save: Update to use the new FS functions. 2017-03-27 23:19:12 +01:00
James Benton
f011f90163 coreinit: Implement FSFlushQuota{Async}. 2017-03-27 23:19:12 +01:00
James Benton
c46708312b coreinit: Implement FSGetFreeSpaceSize{Async}. 2017-03-27 23:19:12 +01:00