Difference between revisions of "FS:CreateFile"
Jump to navigation
Jump to search
(Added CreateFile using information from Steel Diver: Sub Wars and Citra) |
Steveice10 (talk | contribs) m (Use common types.) |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 6: | Line 6: | ||
|- | |- | ||
| 0 | | 0 | ||
− | | Header code [ | + | | Header code [0x08080202] |
|- | |- | ||
| 1 | | 1 | ||
− | | | + | | Transaction (usually 0) |
|- | |- | ||
− | | 2 | + | | 2-3 |
− | + | | u64, Archive Handle | |
− | |||
− | |||
− | | Archive | ||
|- | |- | ||
| 4 | | 4 | ||
− | | [[ | + | | [[Filesystem_services#PathType|Path Type]] |
|- | |- | ||
| 5 | | 5 | ||
− | | | + | | Path Size |
|- | |- | ||
| 6 | | 6 | ||
− | | | + | | [[Filesystem_services#Attributes|Attributes]] |
|- | |- | ||
− | | 7 | + | | 7-8 |
− | + | | u64, Bytes to fill with zeroes in the file | |
− | |||
− | |||
− | | | ||
|- | |- | ||
| 9 | | 9 | ||
− | | ( | + | | (PathSize << 14) <nowiki>|</nowiki> 2 |
|- | |- | ||
| 10 | | 10 | ||
− | | | + | | Path Data Pointer |
|} | |} | ||
Line 49: | Line 43: | ||
|- | |- | ||
| 1 | | 1 | ||
− | | | + | | Result code |
+ | |} | ||
+ | |||
+ | =Errors= | ||
+ | {| class="wikitable" border="1" | ||
+ | |- | ||
+ | ! Result code | ||
+ | ! Description | ||
+ | |- | ||
+ | | 0 | ||
+ | | Returned on success. | ||
+ | |- | ||
+ | | 0x82044BE | ||
+ | | There is already a file or directory in the requested location. | ||
+ | |- | ||
+ | | 0x86044D2 | ||
+ | | The created file is too large. | ||
|} | |} |
Latest revision as of 20:25, 17 October 2015
Request[edit]
Index Word | Description |
---|---|
0 | Header code [0x08080202] |
1 | Transaction (usually 0) |
2-3 | u64, Archive Handle |
4 | Path Type |
5 | Path Size |
6 | Attributes |
7-8 | u64, Bytes to fill with zeroes in the file |
9 | (PathSize << 14) | 2 |
10 | Path Data Pointer |
Response[edit]
Index Word | Description |
---|---|
0 | Header code |
1 | Result code |
Errors[edit]
Result code | Description |
---|---|
0 | Returned on success. |
0x82044BE | There is already a file or directory in the requested location. |
0x86044D2 | The created file is too large. |