mirror of
https://github.com/holub/mame
synced 2025-05-30 01:23:07 +03:00
Fixed bug that caused DIP switches to be improperly read from game cfg file.
This commit is contained in:
parent
650dfb8a28
commit
e06d8f3ce8
@ -3520,7 +3520,7 @@ static int load_game_config(running_machine *machine, xml_data_node *portnode, i
|
||||
const char *tag;
|
||||
|
||||
/* read the mask, index, and defvalue attributes */
|
||||
tag = xml_get_attribute_string(portnode, "port", NULL);
|
||||
tag = xml_get_attribute_string(portnode, "tag", NULL);
|
||||
mask = xml_get_attribute_int(portnode, "mask", 0);
|
||||
defvalue = xml_get_attribute_int(portnode, "defvalue", 0);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user