Changes

406 bytes added ,  03:02, 18 August 2017
Line 85: Line 85:  
|-
 
|-
 
| 56 || [[Flash_Filesystem#PRODINFOF|GetWirelessCertification]]
 
| 56 || [[Flash_Filesystem#PRODINFOF|GetWirelessCertification]]
 +
|-
 +
| 62 || GetDebugMode
 
|-
 
|-
 
| 68 || GetSerialNumber
 
| 68 || GetSerialNumber
Line 95: Line 97:     
The outbuf_size is compared with the config_size. When config_size is larger than outbuf_size, outbuf_size is used for the memcpy, otherwise config_size is used. Afterwards the size used for the memcpy is written to output(see above).
 
The outbuf_size is compared with the config_size. When config_size is larger than outbuf_size, outbuf_size is used for the memcpy, otherwise config_size is used. Afterwards the size used for the memcpy is written to output(see above).
 +
 +
If loading from main config fails, it will also attempt to load config from various state if the input strings match hard-coded strings.
    
== GetSystemVersion ==
 
== GetSystemVersion ==
Line 102: Line 106:     
Then the above 0x100-byte data is copied to the output buffer.
 
Then the above 0x100-byte data is copied to the output buffer.
 +
 +
== GetDebugMode ==
 +
Returns an output u8.
 +
 +
Loads the 1-byte config for <"settings_debug", "is_debug_mode_enabled">. If that fails, value 0x1 is written to output. This uses the same func as ReadSetting internally.
 +
 +
Returned retval is always 0.
    
== GetSerialNumber ==
 
== GetSerialNumber ==