diff options
Diffstat (limited to 'src/emu/inptport.c')
-rw-r--r-- | src/emu/inptport.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/emu/inptport.c b/src/emu/inptport.c index 7693c0e2555..a39286d4752 100644 --- a/src/emu/inptport.c +++ b/src/emu/inptport.c @@ -2385,6 +2385,7 @@ static input_port_config *port_config_detokenize(input_port_config *listhead, co input_field_config *curfield = NULL; input_port_config *curport = NULL; input_port_value maskbits = 0; + UINT16 category; /* (MESS-specific) category */ /* loop over tokens until we hit the end */ while (entrytype != INPUT_TOKEN_END) @@ -2936,7 +2937,7 @@ static input_port_config *port_config_detokenize(input_port_config *listhead, co curfield->name = input_port_string_from_token(*ipt++); break; - /* configuration setting */ + /* category setting */ case INPUT_TOKEN_CATEGORY_SETTING: TOKEN_UNGET_UINT32(ipt); if (curfield == NULL) @@ -2946,8 +2947,9 @@ static input_port_config *port_config_detokenize(input_port_config *listhead, co TOKEN_SKIP_STRING(ipt); break; } - TOKEN_GET_UINT64_UNPACK2(ipt, entrytype, 8, defval, 32); + TOKEN_GET_UINT64_UNPACK3(ipt, entrytype, 8, defval, 32, category, 16); cursetting = setting_config_alloc(curfield, defval & curfield->mask, input_port_string_from_token(*ipt++)); + cursetting->category = category; break; /* analog adjuster definition */ |