Line 321:
Line 321:
==Filesystem==
==Filesystem==
The FS* functions appear to only be used by regular applications, while the FSA* functions appear to only be used by system rpls.
The FS* functions appear to only be used by regular applications, while the FSA* functions appear to only be used by system rpls.
−
===Initialization===
+
===Setup===
{| class="wikitable"
{| class="wikitable"
!Name
!Name
−
!Prototype
+
!Signature
!Description
!Description
!Notes
!Notes
Line 330:
Line 330:
|FSInit
|FSInit
|<code>void FSInit(void);</code>
|<code>void FSInit(void);</code>
−
|Initializes the FS library.
+
|Initializes the FS library
|Must be called before anything else! Can be called multiple times safely.
|Must be called before anything else! Can be called multiple times safely.
|-
|-
|FSShutdown
|FSShutdown
|<code>void FSShutdown(void);</code>
|<code>void FSShutdown(void);</code>
−
|This is just a "return;".
+
|Deinitializes the FS library
−
|
+
|The current implementation of this function doesn't do anything.
|-
|-
|FSAddClient
|FSAddClient
|<code>FSStatus FSAddClient(FSClient *client, FSRetflag flag);</code>
|<code>FSStatus FSAddClient(FSClient *client, FSRetflag flag);</code>
−
|Registers a new client for use.
+
|Registers a new client for use
|Returns OK or MAX_CLIENTS(-3). Client size is 0x1700 bytes, should be 0x20 byte padded.
|Returns OK or MAX_CLIENTS(-3). Client size is 0x1700 bytes, should be 0x20 byte padded.
|-
|-
|FSDelClient
|FSDelClient
|<code>FSStatus FSDelClient(FSClient *client, FSRetflag flag);</code>
|<code>FSStatus FSDelClient(FSClient *client, FSRetflag flag);</code>
−
|Unregisters an existing client.
+
|Unregisters an existing client
−
|Returns OK. See above for data size.
+
|See above for data size. The current implementation of this function never fails.
|-
|-
|FSGetClientNum
|FSGetClientNum
|<code>int FSGetClientNum(void);</code>
|<code>int FSGetClientNum(void);</code>
−
|Gets the number of registered clients.
+
|Gets the number of registered clients
|
|
|}
|}