Previous 199869 Revisions Next

r21704 Friday 8th March, 2013 at 11:18:37 UTC by Fabio Priuli
readded missing logging functions. nw.

(sorry for broken compile in non-MacOSX, but unused variables which are initialized do not trigger any warning in Apple gcc...)
[src/mess/machine]snescart.c

trunk/src/mess/machine/snescart.c
r21703r21704
643643DEVICE_IMAGE_LOAD_MEMBER( snes_state,snes_cart )
644644{
645645   int supported_type = 1;
646   int has_bsx_slot = 0;//, st_bios = 0;
646   int has_bsx_slot = 0, st_bios = 0;
647647   UINT32 offset, int_header_offs;
648648   UINT8 *ROM = memregion("cart")->base();
649649
r21703r21704
684684         if (ROM[int_header_offs + 0x1a] == 0x33 || ROM[int_header_offs + 0x1a] == 0xff)
685685         {
686686            // BS-X Flash Cart
687            mame_printf_error("This is a game with BS-X slot: MESS does not support these yet, sorry.\n");
687688            m_cart[0].mode = SNES_MODE_BSX;
688689         }
689690      }
r21703r21704
706707   // If there is a BS-X connector, detect if it is the Base Cart or a compatible slotted cart
707708   if (has_bsx_slot)
708709   {
710      mame_printf_error("This is a game with BS-X slot: MESS does not support these yet, sorry.\n");
709711      if (!memcmp(ROM + int_header_offs, "Satellaview BS-X     ", 21))
710712      {
711713         //BS-X Base Cart
712         m_cart[0].mode = SNES_MODE_BSX;
714         m_cart[0].mode = SNES_MODE_20; //SNES_MODE_BSX;
713715         // handle RAM
714716      }
715717      else
716718      {
717         m_cart[0].mode = (int_header_offs ==0x007fc0) ? SNES_MODE_BSLO : SNES_MODE_BSHI;
719         m_cart[0].mode = (int_header_offs == 0x007fc0) ? SNES_MODE_20 : SNES_MODE_21; //SNES_MODE_BSLO : SNES_MODE_BSHI;
718720         // handle RAM?
719721      }
720722   }
r21703r21704
723725   if (!memcmp(ROM, "BANDAI SFC-ADX", 14))
724726   {
725727      m_cart[0].mode = SNES_MODE_ST;
726      //if (!memcmp(ROM + 16, "SFC-ADX BACKUP", 14))
727         //st_bios = 1;
728      if (!memcmp(ROM + 16, "SFC-ADX BACKUP", 14))
729         st_bios = 1;
728730   }
731   if (st_bios)
732      mame_printf_error("This is the Sufami Turbo base cart. MESS does not fully support this game in snes/snespal yet, sorry.\nYou might want to try the snesst driver.\n");
733   else if (m_cart[0].mode == SNES_MODE_ST)
734   {
735      mame_printf_error("This is a Sufami Turbo data cart and cannot be loaded for snes/snespal in MESS.\n");
736      mame_printf_error("Please use snesst driver to load it, instead.\n");
737      return IMAGE_INIT_FAIL;
738   }
729739
740   
730741   if (SNES_CART_DEBUG) mame_printf_error("mode %d\n", m_cart[0].mode);
731742
732743   /* Detect special chips */

Previous 199869 Revisions Next


© 1997-2024 The MAME Team