Difference between revisions of "FS:CreateFile"

From 3dbrew
Jump to navigation Jump to search
(Added error codes to CreateFile)
m (Fixed mistake in error code)
Line 59: Line 59:
 
| 0 || Returned on success.
 
| 0 || Returned on success.
 
|-
 
|-
| 0x86044BE || There is already a file or directory in the requested location.
+
| 0x82044BE || There is already a file or directory in the requested location.
 
|-
 
|-
 
| 0x86044D2 || The created file is too large.
 
| 0x86044D2 || The created file is too large.
 
|}
 
|}

Revision as of 06:47, 14 December 2014

Request

Index Word Description
0 Header code [0x08080202]
1 Unknown (Always zero?)
2 Archive handle lower word
3 Archive handle upper word
4 File LowPath.Type
5 File LowPath.Size
6 Unknown (Always zero?)
7 Bytes to fill with zeroes in the file
8 Unknown (Always zero?)
9 (File LowPath.Size<<14) | 2
10 File LowPath.Data pointer

Response

Index Word Description
0 Header code
1 Resultcode

Errors

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.