Changes

588 bytes added ,  19:31, 16 September 2015
Started documenting FS functions, will finish later
Line 60: Line 60:  
|<code>void OSFatal(const char *msg);</code>  
 
|<code>void OSFatal(const char *msg);</code>  
 
|Print a message to the screen and halts the system
 
|Print a message to the screen and halts the system
 +
|}
 +
 +
===Filesystem===
 +
{| class="wikitable"
 +
!Name
 +
!Prototype
 +
!Description
 +
!Notes
 +
|-
 +
|FSInit
 +
|<code>void FSInit(void);</code>
 +
|Initializes the FS library.
 +
|Must be called before anything else! Can be called multiple times safely.
 +
|-
 +
|FSAddClient
 +
|<code>int FSAddClient(void *client, int ret_flag);</code>
 +
|Registers a new client for use.
 +
|Returns 0 if successful. Client size is 0x1700 bytes, should be 0x20 byte padded.
 +
|-
 +
|FSInitCmdBlock
 +
|<code>void FSInitCmdBlock(void *block);</code>
 +
|Initializes a command block for use.
 +
|Command Block size is 0xA80 bytes, should be 0x20 byte padded.
 
|}
 
|}
  
52

edits