Commit 658f82e
committed
menu_cbs_ok: key the dl-map dispatch on the entry label, not type
action_ok_dl_from_map looked the displaylist id up by matching the map's
label enum against the callback 'type' argument. For every entry the map
covers, 'type' is the menu_settings_type (MENU_SETTING_ACTION), never the
MENU_ENUM_LABEL_* value stored in the map, so the scan always missed and
fell through to ACTION_OK_DL_OPEN_ARCHIVE. Selecting Drivers, Load Core,
Video Settings, etc. therefore opened the raw file browser (drive-letter
list, path appended on each press) instead of the intended sub-list.
The bind path already matched on the entry's canonical label; key the
runtime dispatch on the same thing.1 parent a419c18 commit 658f82e
1 file changed
Lines changed: 8 additions & 1 deletion
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2041 | 2041 | | |
2042 | 2042 | | |
2043 | 2043 | | |
| 2044 | + | |
| 2045 | + | |
| 2046 | + | |
| 2047 | + | |
| 2048 | + | |
| 2049 | + | |
2044 | 2050 | | |
2045 | | - | |
| 2051 | + | |
| 2052 | + | |
2046 | 2053 | | |
2047 | 2054 | | |
2048 | 2055 | | |
| |||
0 commit comments