Filesystem services: Difference between revisions

Line 1,288: Line 1,288:
In this scenario, OpenFile returns a handle to the RomFS archive.
In this scenario, OpenFile returns a handle to the RomFS archive.


The 0x3 archive is an interface for the 0x2345678A archive with the current process programID+mediatype. File lowpath:
The 0x3 archive is an interface for the 0x2345678A archive with the current process programID+mediatype. The 3 words here are written to 0x2345678A-archive file_lowpath+0, with the rest of that lowpath set to all-zero. File lowpath:
{| class="wikitable" border="1"
{| class="wikitable" border="1"
|-
|-
Line 1,298: Line 1,298:
* 0x0: Main RomFS.
* 0x0: Main RomFS.
* 0x1: Invalid.
* 0x1: Invalid.
* 0x2: Unknown. 0x2 is written to 0x2345678A-archive file_lowpath+0 for this.
* 0x2: Unknown.
* 0x3: Invalid.
* 0x3: Invalid.
* 0x4: FS-module executes svcBreak when using this.
* 0x4: FS-module executes svcBreak when using this.
|-
|-
| 1-2
| 1-2
| Unknown, normally 0.
| See above.
|}
|}