Previous 15994 Revisions Next

r1959 Wednesday 12th March, 2008 at 01:58:56 UTC by Nathan Woods
Fixing MESS-specific category tokenization
[src/emu]inptport.c inptport.h

src/emu/inptport.c
r1958r1959
19841984   while (entrytype != INPUT_TOKEN_END)
19851985   {
19861986      UINT32 mask, defval, type, val;
1987#ifdef MESS
1988      UINT16 category;
1989#endif /* MESS */
19871990
19881991      /* unpack the token from the first entry */
19891992      TOKEN_GET_UINT32_UNPACK1(ipt, entrytype, 8);
r1958r1959
22452248
22462249         case INPUT_TOKEN_CATEGORY_SETTING:
22472250            TOKEN_UNGET_UINT32(ipt);
2248            TOKEN_GET_UINT64_UNPACK2(ipt, entrytype, 8, defval, 32);
2251            TOKEN_GET_UINT64_UNPACK3(ipt, entrytype, 8, defval, 32, category, 16);
22492252            port = input_port_initialize(param, IPT_CATEGORY_SETTING, modify_tag, 0, defval);
22502253            seq_index[0] = seq_index[1] = seq_index[2] = 0;
22512254            port->name = input_port_string_from_token(*ipt++);
2255            port->category = category;
22522256            break;
22532257#endif /* MESS */
22542258
src/emu/inptport.h
r1958r1959
849849   TOKEN_STRING(_name),
850850
851851#define PORT_CATEGORY_ITEM(_default,_name,_category) \
852   TOKEN_UINT64_PACK3(INPUT_TOKEN_CATEGORY_SETTING, 8, _default, 32, _category, 32), \
852   TOKEN_UINT64_PACK3(INPUT_TOKEN_CATEGORY_SETTING, 8, _default, 32, _category, 16), \
853853   TOKEN_STRING(_name),
854854#endif /* MESS */
855855

Previous 15994 Revisions Next


© 1998-2018 The MESS Team