Changes

485 bytes added ,  00:29, 7 August 2018
Document OpenFile, and the mode bits
Line 617: Line 617:  
| 7 || [[#GetEntryType]]
 
| 7 || [[#GetEntryType]]
 
|-
 
|-
| 8 || OpenFile
+
| 8 || [[#OpenFile]]
 
|-
 
|-
 
| 9 || [[#OpenDirectory]]
 
| 9 || [[#OpenDirectory]]
Line 636: Line 636:  
== GetEntryType ==
 
== GetEntryType ==
 
Takes a type-0x9 input buffer for the path and returns [[#DirectoryEntryType]] as an output u32.
 
Takes a type-0x9 input buffer for the path and returns [[#DirectoryEntryType]] as an output u32.
 +
 +
== OpenFile ==
 +
Takes a type-0x19 input buffer for the path, and an u32 '''mode'''. '''mode''' controls how the file is opened, based on which bits are set:
 +
 +
* When bit 0 is set, the file is Readable: you can use the Read operation.
 +
* When bit 1 is set, the file is Writable: you can use the Write operation.
 +
* When bit 2 is set, the file is Appendable: unless this bit is set, you will not be able to write beyond the end of a file (such writes will result in an error 0x307202)
    
== OpenDirectory ==
 
== OpenDirectory ==
151

edits