Line 1,348: |
Line 1,348: |
| == SetButtonConfigStorageEmbedded == | | == SetButtonConfigStorageEmbedded == |
| Takes an input s32, and a type-0x15 input buffer containing a [[#ButtonConfigEmbedded]]. | | Takes an input s32, and a type-0x15 input buffer containing a [[#ButtonConfigEmbedded]]. |
| + | |
| + | If the input config matches config in state, this first does: |
| + | * Uses [[Settings_services#GetButtonConfigSettingsEmbedded|GetButtonConfigSettingsEmbedded]] with count=5 (output s32 ignored). The input entry-index is used with this array. When [[Settings_services#ButtonConfigSettings|IsEmpty]] is set, the config is deleted the same way as [[#DeleteButtonConfigStorageEmbedded]] (following the IsEmpty check). |
| + | |
| + | Afterwards, this uses [[Settings_services#GetButtonConfigSettingsEmbedded|GetButtonConfigSettingsEmbedded]] with count=5 (output s32 ignored). The input entry-index is used with this array. The input struct is converted, the output from that is copied to +0x1C8 size 0x3E0, IsEmpty is set, [[Settings_services#SetButtonConfigSettingsEmbedded|SetButtonConfigSettingsEmbedded]] is used with the updated array, and then returns 0. |
| | | |
| == SetButtonConfigStorageFull == | | == SetButtonConfigStorageFull == |
| Takes an input s32, and a type-0x15 input buffer containing a [[#ButtonConfigFull]]. | | Takes an input s32, and a type-0x15 input buffer containing a [[#ButtonConfigFull]]. |
| + | |
| + | Same as [[#SetButtonConfigStorageEmbedded]], except this uses different setsys cmds, and uses a different structs etc. |
| | | |
| == SetButtonConfigStorageLeft == | | == SetButtonConfigStorageLeft == |
| Takes an input s32, and a type-0x15 input buffer containing a [[#ButtonConfigLeft]]. | | Takes an input s32, and a type-0x15 input buffer containing a [[#ButtonConfigLeft]]. |
| + | |
| + | Same as [[#SetButtonConfigStorageEmbedded]], except this uses different setsys cmds, and uses a different structs etc. |
| | | |
| == SetButtonConfigStorageRight == | | == SetButtonConfigStorageRight == |
| Takes an input s32, and a type-0x15 input buffer containing a [[#ButtonConfigRight]]. | | Takes an input s32, and a type-0x15 input buffer containing a [[#ButtonConfigRight]]. |
| + | |
| + | Same as [[#SetButtonConfigStorageEmbedded]], except this uses different setsys cmds, and uses a different structs etc. |
| | | |
| == DeleteButtonConfigStorageEmbedded == | | == DeleteButtonConfigStorageEmbedded == |