Previous 15994 Revisions Next

r8290 Thursday 17th June, 2010 at 22:22:32 UTC by Fabio Priuli
[NES] Now mirroring in PCB code is handled by using the new multiple feature nodes
[src/mess/machine]nes.c nes_pcb.c

src/mess/machine/nes_pcb.c
r8289r8290
136136   { "NES-NTBROM",       STD_NXROM },
137137   /* NxROM boards by other manufacturer (this board was mainly used by Sunsoft?) */
138138   { "SUNSOFT-4",        STD_NXROM },
139   { "SUNSOFT-DCS",      STD_NXROM },
139140   { "TENGEN-800042",    STD_NXROM },
140141//
141142   /* Nintendo JxROM */
src/mess/machine/nes.c
r8289r8290
11141114
11151115      /* Check for mirroring */
11161116      // FIXME: this is hacky. it would be better to include these in some feature attribute
1117      if (image_get_software_region(image, "mirror") != NULL)
1117      if (image_get_feature(image, "mirroring") != NULL)
11181118      {
1119         int value = image_get_software_region_length(image, "mirror");
1120         if (value == 2)
1119         const char *mirroring = image_get_feature(image, "mirroring");
1120         if (strcmp(mirroring, "horizontal") == 0)
11211121            state->hard_mirroring = 0;
1122         if (value == 4)
1122         if (strcmp(mirroring, "vertical") == 0)
11231123            state->hard_mirroring = 1;
11241124      }
11251125      /* Check for pins */

Previous 15994 Revisions Next


© 1998-2018 The MESS Team