FS:OpenFile: Difference between revisions

From 3dbrew
Jump to navigation Jump to search
Neimod (talk | contribs)
No edit summary
Neimod (talk | contribs)
m Reverted edits by Neimod (talk) to last revision by Yellows8
Line 68: Line 68:
|}
|}


=LowPath=
=LowPath Types=
{| class="wikitable" border="1"
{| class="wikitable" border="1"
|-
|-
!  Type
LowPath.Type
!  Description
!  Description
|-
|-
| 0 (INVALID)
| 2
| Specifies an invalid path.
| ExeFS file path, first u32 in the LowPath.data buffer is an ID while the rest is the 8-byte filename
|-
|-
| 1 (EMPTY)
| 3
| Specifies an empty path.
| Path char*
|-
|-
| 2 (BINARY)
| 4
| Specifies a binary path, which is non-text based.
| Path wchar_t*
|-
| 3 (CHAR)
| Specifies a text based path with a 8-bit byte per character.
|-
| 4 (WCHAR)
| Specifies a text based path with a 16-bit short per character.
|}
|}

Revision as of 19:48, 20 April 2012

Request

Index Word Description
0 Header code [0x080201C2]
1 Usually zero?
2 Archive handle lower word
3 Archive handle upper word
4 LowPath.Type
5 LowPath.Size
6 Openflags
7 Usually zero?
8 (LowPath.Size<<14) | 2
9 LowPath.Data pointer

Response

Index Word Description
0 Header code
1 Resultcode
3 File handle

Openflags

Bit Description
0 Read
1 Write
2 Create

LowPath Types

LowPath.Type Description
2 ExeFS file path, first u32 in the LowPath.data buffer is an ID while the rest is the 8-byte filename
3 Path char*
4 Path wchar_t*