[ Post New Message | Post Reply to this One | Send Private Email to smame@Team2ch | Help ]

Response to Is there any way to check the Dip Switch Settings of an input file?

from smame@Team2ch (smame@mameworld.net)
It is easy to show dip switch changes. for mame 0.56, go to inptport.c and add this to line 1641.

in = Machine->input_ports; in++; port = 0; while (in->type != IPT_END && port < MAX_INPUT_PORTS) { while (in->type != IPT_END && in->type != IPT_PORT) { if ((in->type & ~IPF_MASK) == IPT_DIPSWITCH_NAME) { in->default_value = (in->default_value & ~in->mask) | (input_port_value[port] & in->mask); } in++; } port++; if (in->type == IPT_PORT) in++; }

(posted 8790 days ago)

[ Previous | Next ]