Previous 15994 Revisions Next

r14185 Thursday 26th January, 2012 at 07:47:23 UTC by Miodrag Milanović
some tag search fixes (no whatsnew)
[src/emu/imagedev]flopdrv.c
[src/mess/machine]990_hd.c 990_tap.c ataricrt.c bbc.c intv.c msx.c pc.c sms.c snescart.c

src/emu/imagedev/flopdrv.c
r14184r14185
750750int floppy_get_drive(device_t *image)
751751{
752752   int drive =0;
753   if (strcmp(image->tag(), FLOPPY_0) == 0) drive = 0;
754   if (strcmp(image->tag(), FLOPPY_1) == 0) drive = 1;
755   if (strcmp(image->tag(), FLOPPY_2) == 0) drive = 2;
756   if (strcmp(image->tag(), FLOPPY_3) == 0) drive = 3;
753   if (strcmp(image->tag(), ":" FLOPPY_0) == 0) drive = 0;
754   if (strcmp(image->tag(), ":" FLOPPY_1) == 0) drive = 1;
755   if (strcmp(image->tag(), ":" FLOPPY_2) == 0) drive = 2;
756   if (strcmp(image->tag(), ":" FLOPPY_3) == 0) drive = 3;
757757   return drive;
758758}
759759
src/mess/machine/ataricrt.c
r14184r14185
465465         type = A800_16K;
466466      else if (size == 0x2000)
467467      {
468         if (strcmp(image.device().tag(),"cart2") == 0)
468         if (strcmp(image.device().tag(),":cart2") == 0)
469469            type = A800_RIGHT_8K;
470470         else
471471            type = A800_8K;
r14184r14185
492492      }
493493   }
494494
495   if ((strcmp(image.device().tag(),"cart2") == 0) && (type != A800_RIGHT_8K))
495   if ((strcmp(image.device().tag(),":cart2") == 0) && (type != A800_RIGHT_8K))
496496      fatalerror("You cannot load this image '%s' in the right slot", image.filename());
497497
498498   return type;
src/mess/machine/990_tap.c
r14184r14185
113113static int tape_get_id(device_t *image)
114114{
115115   int drive =0;
116   if (strcmp(image->tag(), "tape0") == 0) drive = 0;
117   if (strcmp(image->tag(), "tape1") == 0) drive = 1;
118   if (strcmp(image->tag(), "tape2") == 0) drive = 2;
119   if (strcmp(image->tag(), "tape3") == 0) drive = 3;
116   if (strcmp(image->tag(), ":tape0") == 0) drive = 0;
117   if (strcmp(image->tag(), ":tape1") == 0) drive = 1;
118   if (strcmp(image->tag(), ":tape2") == 0) drive = 2;
119   if (strcmp(image->tag(), ":tape3") == 0) drive = 3;
120120   return drive;
121121}
122122
src/mess/machine/intv.c
r14184r14185
827827
828828DEVICE_IMAGE_LOAD( intvkbd_cart )
829829{
830   if (strcmp(image.device().tag(),"cart1") == 0) /* Legacy cartridge slot */
830   if (strcmp(image.device().tag(),":cart1") == 0) /* Legacy cartridge slot */
831831   {
832832      /* First, initialize these as empty so that the intellivision
833833         * will think that the playcable is not attached */
r14184r14185
840840      intv_load_rom_file(image);
841841   }
842842
843   if (strcmp(image.device().tag(),"cart2") == 0) /* Keyboard component cartridge slot */
843   if (strcmp(image.device().tag(),":cart2") == 0) /* Keyboard component cartridge slot */
844844   {
845845      UINT8 *memory = image.device().machine().region("keyboard")->base();
846846
src/mess/machine/snescart.c
r14184r14185
238238   device_image_interface *image = dynamic_cast<device_image_interface *>(machine.device(cart_tag));
239239   image->battery_load(battery_ram, 0x20000, 0);
240240
241   if (strcmp(cart_tag, "slot_a") == 0)
241   if (strcmp(cart_tag, ":slot_a") == 0)
242242      st_sram_offset = 0x608000;
243243
244   if (strcmp(cart_tag, "slot_b") == 0)
244   if (strcmp(cart_tag, ":slot_b") == 0)
245245      st_sram_offset = 0x708000;
246246
247247   /* Cart RAM is at 0x60-0x63:0x8000-0xffff (+0x10 for slot2) */
r14184r14185
11551155
11561156   snes_ram = machine.region("maincpu")->base();
11571157
1158   if (strcmp(image.device().tag(), "slot_a") == 0)
1158   if (strcmp(image.device().tag(), ":slot_a") == 0)
11591159   {
11601160      st_data_offset = 0x200000;
11611161      slot_id = 0;
11621162   }
11631163
1164   if (strcmp(image.device().tag(), "slot_b") == 0)
1164   if (strcmp(image.device().tag(), ":slot_b") == 0)
11651165   {
11661166      st_data_offset = 0x400000;
11671167      slot_id = 1;
src/mess/machine/pc.c
r14184r14185
11901190   UINT32   address;
11911191   UINT32   size;
11921192
1193   address = ( ! strcmp( "cart2", image.device().tag() ) ) ? 0xd0000 : 0xe0000;
1193   address = ( ! strcmp( ":cart2", image.device().tag() ) ) ? 0xd0000 : 0xe0000;
11941194
11951195   if ( image.software_entry() )
11961196   {
src/mess/machine/bbc.c
r14184r14185
19601960
19611961   size = image.length();
19621962
1963   if (strcmp(image.device().tag(),"cart1") == 0)
1963   if (strcmp(image.device().tag(),":cart1") == 0)
19641964   {
19651965      index = 0;
19661966   }
1967   if (strcmp(image.device().tag(),"cart2") == 0)
1967   if (strcmp(image.device().tag(),":cart2") == 0)
19681968   {
19691969      index = 1;
19701970   }
1971   if (strcmp(image.device().tag(),"cart3") == 0)
1971   if (strcmp(image.device().tag(),":cart3") == 0)
19721972   {
19731973      index = 2;
19741974   }
1975   if (strcmp(image.device().tag(),"cart4") == 0)
1975   if (strcmp(image.device().tag(),":cart4") == 0)
19761976   {
19771977      index = 3;
19781978   }
src/mess/machine/990_hd.c
r14184r14185
171171{
172172   int id = -1;
173173
174   if ( ! strcmp( "harddisk1", device->tag() ) )
174   if ( ! strcmp( ":harddisk1", device->tag() ) )
175175   {
176176      id = 0;
177177   }
178   else if ( ! strcmp( "harddisk2", device->tag() ) )
178   else if ( ! strcmp( ":harddisk2", device->tag() ) )
179179   {
180180      id = 1;
181181   }
182   else if ( ! strcmp( "harddisk3", device->tag() ) )
182   else if ( ! strcmp( ":harddisk3", device->tag() ) )
183183   {
184184      id = 2;
185185   }
186   else if ( ! strcmp( "harddisk4", device->tag() ) )
186   else if ( ! strcmp( ":harddisk4", device->tag() ) )
187187   {
188188      id = 3;
189189   }
src/mess/machine/sms.c
r14184r14185
16341634   sms_state *state = machine.driver_data<sms_state>();
16351635   int size, index = 0, offset = 0;
16361636
1637   if (strcmp(image.device().tag(), "cart1") == 0)
1637   if (strcmp(image.device().tag(), ":cart1") == 0)
16381638      index = 0;
1639   if (strcmp(image.device().tag(), "cart2") == 0)
1639   if (strcmp(image.device().tag(), ":cart2") == 0)
16401640      index = 1;
1641   if (strcmp(image.device().tag(), "cart3") == 0)
1641   if (strcmp(image.device().tag(), ":cart3") == 0)
16421642      index = 2;
1643   if (strcmp(image.device().tag(), "cart4") == 0)
1643   if (strcmp(image.device().tag(), ":cart4") == 0)
16441644      index = 3;
1645   if (strcmp(image.device().tag(), "cart5") == 0)
1645   if (strcmp(image.device().tag(), ":cart5") == 0)
16461646      index = 4;
1647   if (strcmp(image.device().tag(), "cart6") == 0)
1647   if (strcmp(image.device().tag(), ":cart6") == 0)
16481648      index = 5;
1649   if (strcmp(image.device().tag(), "cart7") == 0)
1649   if (strcmp(image.device().tag(), ":cart7") == 0)
16501650      index = 6;
1651   if (strcmp(image.device().tag(), "cart8") == 0)
1651   if (strcmp(image.device().tag(), ":cart8") == 0)
16521652      index = 7;
1653   if (strcmp(image.device().tag(), "cart9") == 0)
1653   if (strcmp(image.device().tag(), ":cart9") == 0)
16541654      index = 8;
1655   if (strcmp(image.device().tag(), "cart10") == 0)
1655   if (strcmp(image.device().tag(), ":cart10") == 0)
16561656      index = 9;
1657   if (strcmp(image.device().tag(), "cart11") == 0)
1657   if (strcmp(image.device().tag(), ":cart11") == 0)
16581658      index = 10;
1659   if (strcmp(image.device().tag(), "cart12") == 0)
1659   if (strcmp(image.device().tag(), ":cart12") == 0)
16601660      index = 11;
1661   if (strcmp(image.device().tag(), "cart13") == 0)
1661   if (strcmp(image.device().tag(), ":cart13") == 0)
16621662      index = 12;
1663   if (strcmp(image.device().tag(), "cart14") == 0)
1663   if (strcmp(image.device().tag(), ":cart14") == 0)
16641664      index = 13;
1665   if (strcmp(image.device().tag(), "cart15") == 0)
1665   if (strcmp(image.device().tag(), ":cart15") == 0)
16661666      index = 14;
1667   if (strcmp(image.device().tag(), "cart16") == 0)
1667   if (strcmp(image.device().tag(), ":cart16") == 0)
16681668      index = 15;
16691669
16701670   state->m_cartridge[index].features = 0;
src/mess/machine/msx.c
r14184r14185
8181   slot_state *st;
8282   int id = -1;
8383
84   if (strcmp(image.device().tag(),"cart1")==0)
84   if (strcmp(image.device().tag(),":cart1")==0)
8585      id = 0;
8686
87   if (strcmp(image.device().tag(),"cart2")==0)
87   if (strcmp(image.device().tag(),":cart2")==0)
8888      id = 1;
8989
9090   if( id == -1 )
r14184r14185
340340   msx_state *state = image.device().machine().driver_data<msx_state>();
341341   int id = -1;
342342
343   if (strcmp(image.device().tag(),"cart1")==0)
343   if (strcmp(image.device().tag(),":cart1")==0)
344344      id = 0;
345345
346   if (strcmp(image.device().tag(),"cart2")==0)
346   if (strcmp(image.device().tag(),":cart2")==0)
347347      id = 1;
348348
349349   if( id == -1 )

Previous 15994 Revisions Next


© 1998-2018 The MESS Team