Commit 730f466
authored
Unify menu binding types with their widget CreateParams counterparts (isledecomp#505)
SelectorBinding and ButtonBindingTable::ButtonBinding duplicated the field
layout of MenuSelector::CreateParams and MenuTextButton::CreateParams with
undefined4 placeholders in the pointer slots. The consumers already cast the
stored entries to the widget CreateParams types (CreateSelector,
CreateTextButton), so the two declarations describe the same record; derive
the bindings from the real types instead. MenuTextButton::CreateParams's
m_unk0xd0 is a VisualStateColor, proven by ParseButtonBinding writing it via
ReadVisualState.
Byte-identical: full reccmp JSON diff vs master baseline shows zero changes
(96.79%, 3942 functions at 100%); decomplint, datacmp and check_folded clean.1 parent d304f98 commit 730f466
3 files changed
Lines changed: 4 additions & 18 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | | - | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
| 47 | + | |
58 | 48 | | |
59 | 49 | | |
60 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
| 94 | + | |
99 | 95 | | |
100 | 96 | | |
101 | 97 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
0 commit comments