1 diff -Nru base0113s/src/emu/info.c w0113/src/emu/info.c
2 --- base0113s/src/emu/info.c 2007-02-12 16:43:00.000000000 +1300
3 +++ w0113/src/emu/info.c 2007-03-06 10:40:09.000000000 +1300
5 static void print_game_switch(FILE* out, const game_driver* game)
7 const input_port_entry* input;
10 begin_resource_tracking();
14 while (input->type != IPT_END)
16 + if(input->start.tag != NULL)
19 if (input->type==IPT_DIPSWITCH_NAME)
21 int def = input->default_value;
23 fprintf(out, "\t\t<dipswitch");
25 fprintf(out, " name=\"%s\"", xml_normalize_string(input->name));
26 + fprintf(out, " mask=\"%i\"", input->mask);
27 + fprintf(out, " port=\"%i\"", port);
33 fprintf(out, "\t\t\t<dipvalue");
34 fprintf(out, " name=\"%s\"", xml_normalize_string(input->name));
35 + fprintf(out, " value=\"%i\"", input->default_value);
36 if (def == input->default_value)
37 fprintf(out, " default=\"yes\"");