Line 1,296: |
Line 1,296: |
| == IsDefaultButtonConfigEmbedded == | | == IsDefaultButtonConfigEmbedded == |
| Takes a type-0x15 input buffer containing a [[#ButtonConfigEmbedded]], returns an output bool. | | Takes a type-0x15 input buffer containing a [[#ButtonConfigEmbedded]], returns an output bool. |
| + | |
| + | This compares the input config with config in state, sets the output bool to whether these match, then returns 0. |
| | | |
| == IsDefaultButtonConfigFull == | | == IsDefaultButtonConfigFull == |
| Takes a type-0x15 input buffer containing a [[#ButtonConfigFull]], returns an output bool. | | Takes a type-0x15 input buffer containing a [[#ButtonConfigFull]], returns an output bool. |
| + | |
| + | This compares the input config with config in state, sets the output bool to whether these match, then returns 0. |
| | | |
| == IsDefaultButtonConfigLeft == | | == IsDefaultButtonConfigLeft == |
| Takes a type-0x15 input buffer containing a [[#ButtonConfigLeft]], returns an output bool. | | Takes a type-0x15 input buffer containing a [[#ButtonConfigLeft]], returns an output bool. |
| + | |
| + | This compares the input config with config in state, sets the output bool to whether these match, then returns 0. |
| | | |
| == IsDefaultButtonConfigRight == | | == IsDefaultButtonConfigRight == |
| Takes a type-0x15 input buffer containing a [[#ButtonConfigRight]], returns an output bool. | | Takes a type-0x15 input buffer containing a [[#ButtonConfigRight]], returns an output bool. |
| + | |
| + | This compares the input config with config in state, sets the output bool to whether these match, then returns 0. |
| | | |
| == IsButtonConfigStorageEmbeddedEmpty == | | == IsButtonConfigStorageEmbeddedEmpty == |
Line 1,349: |
Line 1,357: |
| Takes an input s32 entry-index, and a type-0x15 input buffer containing a [[#ButtonConfigEmbedded]]. | | Takes an input s32 entry-index, and a type-0x15 input buffer containing a [[#ButtonConfigEmbedded]]. |
| | | |
− | If the input config matches config in state, this first does: | + | If the input config matches the [[#IsDefaultButtonConfigEmbedded|default]], 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|IsFull]] is set, the config is deleted the same way as [[#DeleteButtonConfigStorageEmbedded]] (following the IsFull check). | | * Uses [[Settings_services#GetButtonConfigSettingsEmbedded|GetButtonConfigSettingsEmbedded]] with count=5 (output s32 ignored). The input entry-index is used with this array. When [[Settings_services#ButtonConfigSettings|IsFull]] is set, the config is deleted the same way as [[#DeleteButtonConfigStorageEmbedded]] (following the IsFull check). |
| | | |