From ee54cac93cf3ee3074045e1292fb76f5693b6fd8 Mon Sep 17 00:00:00 2001 From: dinkc64 <12570148+dinkc64@users.noreply.github.com> Date: Sun, 29 Nov 2015 14:52:43 +0000 Subject: [PATCH] BisonSAS toaplan changes from 2010, adds service mode & unicode titles to several games --- src/burn/drv/toaplan/d_demonwld.cpp | 8 ++++---- src/burn/drv/toaplan/d_kbash2.cpp | 4 ++-- src/burn/drv/toaplan/d_rallybik.cpp | 8 ++++++-- src/burn/drv/toaplan/d_samesame.cpp | 24 ++++++++++++++++++++---- src/burn/drv/toaplan/d_vimana.cpp | 8 ++++++++ 5 files changed, 40 insertions(+), 12 deletions(-) diff --git a/src/burn/drv/toaplan/d_demonwld.cpp b/src/burn/drv/toaplan/d_demonwld.cpp index ec885b45b..34152bf7d 100644 --- a/src/burn/drv/toaplan/d_demonwld.cpp +++ b/src/burn/drv/toaplan/d_demonwld.cpp @@ -725,7 +725,7 @@ static INT32 demonwldInit() struct BurnDriver BurnDrvDemonwld = { "demonwld", NULL, NULL, NULL, "1990", "Demon's World / Horror Story (set 1)\0", NULL, "Toaplan", "Toaplan BCU-2 / FCU-2 based", - NULL, NULL, NULL, NULL, + L"Demon's World\0\u30DB\u30E9\u30FC\u30B9\u30C8\u30FC\u30EA\u30FC (set 1)\0", NULL, NULL, NULL, BDF_GAME_WORKING | BDF_HISCORE_SUPPORTED, 2, HARDWARE_TOAPLAN_RAIZING, GBF_PLATFORM, 0, NULL, demonwldRomInfo, demonwldRomName, NULL, NULL, DemonwldInputInfo, DemonwldDIPInfo, demonwldInit, DrvExit, DrvFrame, DrvDraw, DrvScan, &ToaRecalcPalette, 0x800, @@ -775,7 +775,7 @@ static INT32 demonwld1Init() struct BurnDriver BurnDrvDemonwld1 = { "demonwld1", "demonwld", NULL, NULL, "1989", "Demon's World / Horror Story (Taito license, set 2)\0", NULL, "Toaplan", "Toaplan BCU-2 / FCU-2 based", - NULL, NULL, NULL, NULL, + L"Demon's World\0\u30DB\u30E9\u30FC\u30B9\u30C8\u30FC\u30EA\u30FC (set 2)\0", NULL, NULL, NULL, BDF_GAME_WORKING | BDF_CLONE | BDF_HISCORE_SUPPORTED, 2, HARDWARE_TOAPLAN_RAIZING, GBF_PLATFORM, 0, NULL, demonwld1RomInfo, demonwld1RomName, NULL, NULL, DemonwldInputInfo, Demonwl1DIPInfo, demonwld1Init, DrvExit, DrvFrame, DrvDraw, DrvScan, &ToaRecalcPalette, 0x800, @@ -814,7 +814,7 @@ STD_ROM_FN(demonwld2) struct BurnDriver BurnDrvDemonwld2 = { "demonwld2", "demonwld", NULL, NULL, "1989", "Demon's World / Horror Story (set 3)\0", NULL, "Toaplan", "Toaplan BCU-2 / FCU-2 based", - NULL, NULL, NULL, NULL, + L"Demon's World\0\u30DB\u30E9\u30FC\u30B9\u30C8\u30FC\u30EA\u30FC (set 3)\0", NULL, NULL, NULL, BDF_GAME_WORKING | BDF_CLONE | BDF_HISCORE_SUPPORTED, 2, HARDWARE_TOAPLAN_RAIZING, GBF_PLATFORM, 0, NULL, demonwld2RomInfo, demonwld2RomName, NULL, NULL, DemonwldInputInfo, Demonwl1DIPInfo, demonwld1Init, DrvExit, DrvFrame, DrvDraw, DrvScan, &ToaRecalcPalette, 0x800, @@ -864,7 +864,7 @@ static INT32 demonwld3Init() struct BurnDriver BurnDrvDemonwld3 = { "demonwld3", "demonwld", NULL, NULL, "1989", "Demon's World / Horror Story (set 4)\0", NULL, "Toaplan", "Toaplan BCU-2 / FCU-2 based", - NULL, NULL, NULL, NULL, + L"Demon's World\0\u30DB\u30E9\u30FC\u30B9\u30C8\u30FC\u30EA\u30FC (set 4)\0", NULL, NULL, NULL, BDF_GAME_WORKING | BDF_CLONE | BDF_HISCORE_SUPPORTED, 2, HARDWARE_TOAPLAN_RAIZING, GBF_PLATFORM, 0, NULL, demonwld3RomInfo, demonwld3RomName, NULL, NULL, DemonwldInputInfo, Demonwl1DIPInfo, demonwld3Init, DrvExit, DrvFrame, DrvDraw, DrvScan, &ToaRecalcPalette, 0x800, diff --git a/src/burn/drv/toaplan/d_kbash2.cpp b/src/burn/drv/toaplan/d_kbash2.cpp index d338f9793..b4a04a232 100644 --- a/src/burn/drv/toaplan/d_kbash2.cpp +++ b/src/burn/drv/toaplan/d_kbash2.cpp @@ -546,8 +546,8 @@ static INT32 DrvFrame() struct BurnDriver BurnDrvKbash2 = { "kbash2", NULL, NULL, NULL, "1999", "Knuckle Bash 2 (bootleg)\0", NULL, "bootleg", "Toaplan GP9001 based", - NULL, NULL, NULL, NULL, - BDF_GAME_WORKING, 2, HARDWARE_TOAPLAN_68K_ONLY, GBF_SCRFIGHT, 0, + L"Knuckle Bash 2\0Knuckle Bash \u30CA\u30C3\u30AF\u30EB\u30D0\u30C3\u30B7\u30E5 \uFF12 (bootleg)\0", NULL, NULL, NULL, + BDF_GAME_WORKING | BDF_BOOTLEG, 2, HARDWARE_TOAPLAN_68K_ONLY, GBF_SCRFIGHT, 0, NULL, kbash2RomInfo, kbash2RomName, NULL, NULL, Kbash2InputInfo, Kbash2DIPInfo, DrvInit, DrvExit, DrvFrame, DrvDraw, DrvScan, &ToaRecalcPalette, 0x800, 320, 240, 4, 3 diff --git a/src/burn/drv/toaplan/d_rallybik.cpp b/src/burn/drv/toaplan/d_rallybik.cpp index f3b3a8160..e880ef15d 100644 --- a/src/burn/drv/toaplan/d_rallybik.cpp +++ b/src/burn/drv/toaplan/d_rallybik.cpp @@ -73,6 +73,10 @@ static struct BurnDIPInfo RallybikDIPList[]= {0x13, 0x01, 0x02, 0x00, "Off" }, {0x13, 0x01, 0x02, 0x02, "On" }, + {0 , 0xfe, 0 , 2, "Service Mode" }, + {0x13, 0x01, 0x04, 0x00, "Off" }, + {0x13, 0x01, 0x04, 0x04, "On" }, + {0 , 0xfe, 0 , 2, "Demo Sounds" }, {0x13, 0x01, 0x08, 0x08, "Off" }, {0x13, 0x01, 0x08, 0x00, "On" }, @@ -607,8 +611,8 @@ STD_ROM_FN(rallybik) struct BurnDriver BurnDrvRallybik = { "rallybik", NULL, NULL, NULL, "1988", "Rally Bike / Dash Yarou\0", NULL, "[Toaplan] Taito Corporation", "Toaplan BCU-2 / FCU-2 based", - NULL, NULL, NULL, NULL, - BDF_GAME_WORKING | TOA_ROTATE_GRAPHICS_CCW, 2, HARDWARE_TOAPLAN_RAIZING, GBF_VERSHOOT, 0, + L"Rally Bike\0\u30C0\u30C3\u30B7\u30E5\u91CE\u90CE\0", NULL, NULL, NULL, + BDF_GAME_WORKING | TOA_ROTATE_GRAPHICS_CCW, 2, HARDWARE_TOAPLAN_RAIZING, GBF_RACING, 0, NULL, rallybikRomInfo, rallybikRomName, NULL, NULL, RallybikInputInfo, RallybikDIPInfo, DrvInit, DrvExit, DrvFrame, DrvDraw, DrvScan, &ToaRecalcPalette, 0x800, 240, 320, 3, 4 diff --git a/src/burn/drv/toaplan/d_samesame.cpp b/src/burn/drv/toaplan/d_samesame.cpp index 949e44766..bbebdbb20 100644 --- a/src/burn/drv/toaplan/d_samesame.cpp +++ b/src/burn/drv/toaplan/d_samesame.cpp @@ -83,6 +83,10 @@ static struct BurnDIPInfo SamesameDIPList[]= {0x13, 0x01, 0x02, 0x00, "Off" }, {0x13, 0x01, 0x02, 0x02, "On" }, + {0 , 0xfe, 0 , 2, "Service Mode" }, + {0x13, 0x01, 0x04, 0x00, "Off" }, + {0x13, 0x01, 0x04, 0x04, "On" }, + {0 , 0xfe, 0 , 2, "Demo Sounds" }, {0x13, 0x01, 0x08, 0x08, "Off" }, {0x13, 0x01, 0x08, 0x00, "On" }, @@ -130,6 +134,10 @@ static struct BurnDIPInfo Samesam2DIPList[]= {0x13, 0x01, 0x02, 0x00, "Off" }, {0x13, 0x01, 0x02, 0x02, "On" }, + {0 , 0xfe, 0 , 2, "Service Mode" }, + {0x13, 0x01, 0x04, 0x00, "Off" }, + {0x13, 0x01, 0x04, 0x04, "On" }, + {0 , 0xfe, 0 , 2, "Demo Sounds" }, {0x13, 0x01, 0x08, 0x08, "Off" }, {0x13, 0x01, 0x08, 0x00, "On" }, @@ -181,6 +189,10 @@ static struct BurnDIPInfo FireshrkDIPList[]= {0x13, 0x01, 0x02, 0x00, "Off" }, {0x13, 0x01, 0x02, 0x02, "On" }, + {0 , 0xfe, 0 , 2, "Service Mode" }, + {0x13, 0x01, 0x04, 0x00, "Off" }, + {0x13, 0x01, 0x04, 0x04, "On" }, + {0 , 0xfe, 0 , 2, "Demo Sounds" }, {0x13, 0x01, 0x08, 0x08, "Off" }, {0x13, 0x01, 0x08, 0x00, "On" }, @@ -246,6 +258,10 @@ static struct BurnDIPInfo FireshrkaDIPList[]= {0x13, 0x01, 0x02, 0x00, "Off" }, {0x13, 0x01, 0x02, 0x02, "On" }, + {0 , 0xfe, 0 , 2, "Service Mode" }, + {0x13, 0x01, 0x04, 0x00, "Off" }, + {0x13, 0x01, 0x04, 0x04, "On" }, + {0 , 0xfe, 0 , 2, "Demo Sounds" }, {0x13, 0x01, 0x08, 0x08, "Off" }, {0x13, 0x01, 0x08, 0x00, "On" }, @@ -977,7 +993,7 @@ static INT32 DrvScan(INT32 nAction, INT32* pnMin) } if (nAction & ACB_VOLATILE) { memset(&ba, 0, sizeof(ba)); - ba.Data = AllRam; + ba.Data = AllRam; ba.nLen = RamEnd - AllRam; ba.szName = "RAM"; BurnAcb(&ba); @@ -998,11 +1014,11 @@ static INT32 DrvScan(INT32 nAction, INT32* pnMin) SCAN_VAR(Start2); #endif - SCAN_VAR(nCyclesDone); + SCAN_VAR(nCyclesDone); ToaScanBCU2(nAction, pnMin); - ToaRecalcPalette = 1; - bDrawScreen = true; // get background back ? + ToaRecalcPalette = 1; + bDrawScreen = true; // get background back ? } return 0; diff --git a/src/burn/drv/toaplan/d_vimana.cpp b/src/burn/drv/toaplan/d_vimana.cpp index 487053655..ad4cd25aa 100644 --- a/src/burn/drv/toaplan/d_vimana.cpp +++ b/src/burn/drv/toaplan/d_vimana.cpp @@ -81,6 +81,10 @@ static struct BurnDIPInfo VimanaDIPList[]= {0x15, 0x01, 0x02, 0x00, "Off" }, {0x15, 0x01, 0x02, 0x02, "On" }, + {0 , 0xfe, 0 , 2, "Service Mode" }, + {0x15, 0x01, 0x04, 0x00, "Off" }, + {0x15, 0x01, 0x04, 0x04, "On" }, + {0 , 0xfe, 0 , 2, "Demo Sounds" }, {0x15, 0x01, 0x08, 0x08, "Off" }, {0x15, 0x01, 0x08, 0x00, "On" }, @@ -148,6 +152,10 @@ static struct BurnDIPInfo VimananDIPList[]= {0x15, 0x01, 0x02, 0x00, "Off" }, {0x15, 0x01, 0x02, 0x02, "On" }, + {0 , 0xfe, 0 , 2, "Service Mode" }, + {0x15, 0x01, 0x04, 0x00, "Off" }, + {0x15, 0x01, 0x04, 0x04, "On" }, + {0 , 0xfe, 0 , 4, "Difficulty" }, {0x16, 0x01, 0x03, 0x01, "Easy" }, {0x16, 0x01, 0x03, 0x00, "Medium" },