Changes

1,553 bytes added ,  17:36, 19 April 2020
Line 1,328: Line 1,328:  
== GetButtonConfigStorageEmbedded ==
 
== GetButtonConfigStorageEmbedded ==
 
Takes an input s32, and a type-0x16 output buffer containing a [[#ButtonConfigEmbedded]].
 
Takes an input s32, and a type-0x16 output buffer containing a [[#ButtonConfigEmbedded]].
 +
 +
Uses [[Settings_services#GetButtonConfigSettingsEmbedded|GetButtonConfigSettingsEmbedded]] with count=5 (output s32 ignored). The input entry-index is used with this array. Then an error is thrown if [[Settings_services#ButtonConfigSettings|IsEmpty]] bit0 is clear. Then the data at +0x1C8 is converted to [[#ButtonConfigEmbedded]], copied to output, and returns 0.
    
== GetButtonConfigStorageFull ==
 
== GetButtonConfigStorageFull ==
 
Takes an input s32, and a type-0x16 output buffer containing a [[#ButtonConfigFull]].
 
Takes an input s32, and a type-0x16 output buffer containing a [[#ButtonConfigFull]].
 +
 +
Same as [[#GetButtonConfigStorageEmbedded]], except this uses a different setsys cmd, and uses a different conversion func / different output struct.
    
== GetButtonConfigStorageLeft ==
 
== GetButtonConfigStorageLeft ==
 
Takes an input s32, and a type-0x16 output buffer containing a [[#ButtonConfigLeft]].
 
Takes an input s32, and a type-0x16 output buffer containing a [[#ButtonConfigLeft]].
 +
 +
Same as [[#GetButtonConfigStorageEmbedded]], except this uses a different setsys cmd, and uses a different conversion func / different output struct.
    
== GetButtonConfigStorageRight ==
 
== GetButtonConfigStorageRight ==
 
Takes an input s32, and a type-0x16 output buffer containing a [[#ButtonConfigRight]].
 
Takes an input s32, and a type-0x16 output buffer containing a [[#ButtonConfigRight]].
 +
 +
Same as [[#GetButtonConfigStorageEmbedded]], except this uses a different setsys cmd, and uses a different conversion func / different output struct.
    
== SetButtonConfigStorageEmbedded ==
 
== SetButtonConfigStorageEmbedded ==
Line 1,353: Line 1,361:  
Takes an input s32, no output.
 
Takes an input s32, no output.
   −
== DeleteButtonConfigStorageFull ==
+
Uses [[Settings_services#GetButtonConfigSettingsEmbedded|GetButtonConfigSettingsEmbedded]] with count=5 (output s32 ignored). The input entry-index is used with this array. Then an error is thrown if [[Settings_services#ButtonConfigSettings|IsEmpty]] bit0 is clear. Then the data at +0x1C8 size 0x3E0 is cleared, IsEmpty bit0 is cleared, [[Settings_services#SetButtonConfigSettingsEmbedded|SetButtonConfigSettingsEmbedded]] is used with the updated array, and then returns 0.
 +
 
 +
== DeleteButtonConfigStorageEmbedded ==
 
Takes an input s32, no output.
 
Takes an input s32, no output.
 +
 +
Same as [[#IsButtonConfigStorageEmbeddedEmpty]] except with different setsys cmds.
    
== DeleteButtonConfigStorageLeft ==
 
== DeleteButtonConfigStorageLeft ==
 
Takes an input s32, no output.
 
Takes an input s32, no output.
 +
 +
Same as [[#IsButtonConfigStorageEmbeddedEmpty]] except with different setsys cmds.
    
== DeleteButtonConfigStorageRight ==
 
== DeleteButtonConfigStorageRight ==
 
Takes an input s32, no output.
 
Takes an input s32, no output.
 +
 +
Same as [[#IsButtonConfigStorageEmbeddedEmpty]] except with different setsys cmds.
    
== IsUsingCustomButtonConfig ==
 
== IsUsingCustomButtonConfig ==