From 6215623640d4da175619834d176d95aaa873298e Mon Sep 17 00:00:00 2001 From: Flyinghead Date: Mon, 13 Apr 2020 18:32:58 +0200 Subject: [PATCH] naomi: add tokyo bus guide --- core/hw/naomi/naomi_roms.h | 36 ++++++++++++++++++++++++++++++++ core/hw/naomi/naomi_roms_input.h | 23 ++++++++++++++++++++ 2 files changed, 59 insertions(+) diff --git a/core/hw/naomi/naomi_roms.h b/core/hw/naomi/naomi_roms.h index c18c764cc..480619804 100644 --- a/core/hw/naomi/naomi_roms.h +++ b/core/hw/naomi/naomi_roms.h @@ -3482,6 +3482,42 @@ Games[] = { NULL, 0, 0 }, } }, + // Tokyo Bus + { + "tokyobus", + NULL, + "Tokyo Bus Guide (Rev A)", + 0x09800000, + 0x281e1242, + NULL, + M2, + REGION_JAPAN, + ROT0, + { + { "epr-23468a.ic22", 0x0000000, 0x0400000 }, + { "rom1.ic1s", 0x0800000, 0x0800000 }, + { "rom2.ic2s", 0x1000000, 0x0800000 }, + { "rom3.ic3s", 0x1800000, 0x0800000 }, + { "rom4.ic4s", 0x2000000, 0x0800000 }, + { "rom5.ic5s", 0x2800000, 0x0800000 }, + { "rom6.ic6s", 0x3000000, 0x0800000 }, + { "rom7.ic7s", 0x3800000, 0x0800000 }, + { "rom8.ic8s", 0x4000000, 0x0800000 }, + { "rom9.ic9s", 0x4800000, 0x0800000 }, + { "rom10.ic10s", 0x5000000, 0x0800000 }, + { "rom11.ic11s", 0x5800000, 0x0800000 }, + { "rom12.ic12s", 0x6000000, 0x0800000 }, + { "rom13.ic13s", 0x6800000, 0x0800000 }, + { "rom14.ic14s", 0x7000000, 0x0800000 }, + { "rom15.ic15s", 0x7800000, 0x0800000 }, + { "rom16.ic16s", 0x8000000, 0x0800000 }, + { "rom17.ic17s", 0x8800000, 0x0800000 }, + { "rom18.ic18s", 0x9000000, 0x0800000 }, + { NULL, 0, 0 }, + }, + NULL, + &tokyobus_inputs, + }, // The Typing of the Dead (Rev A) { "totd", diff --git a/core/hw/naomi/naomi_roms_input.h b/core/hw/naomi/naomi_roms_input.h index bcb615ffa..fc70e2876 100644 --- a/core/hw/naomi/naomi_roms_input.h +++ b/core/hw/naomi/naomi_roms_input.h @@ -340,6 +340,29 @@ static InputDescriptors cvs2_inputs = { }, }; +static InputDescriptors tokyobus_inputs = { + { + { NAOMI_BTN0_KEY, "HORN" }, + { NAOMI_DOWN_KEY, "VIEW CHANGE" }, + { NAOMI_LEFT_KEY, "ANNOUNCE" }, + { NAOMI_RIGHT_KEY, "DOOR CLOSE" }, + // These buttons uses P2 inputs for P1 + { NAOMI_BTN1_KEY, "WINKER RIGHT", NAOMI_BTN0_KEY }, + { NAOMI_BTN2_KEY, "WINKER LEFT", NAOMI_BTN1_KEY }, + { NAOMI_BTN3_KEY, "SHIFT FRONT", NAOMI_UP_KEY }, + { NAOMI_BTN4_KEY, "SHIFT REVERSE", NAOMI_DOWN_KEY }, + NAO_START_DESC + NAO_BASE_BTN_DESC + { 0 }, + }, + { + { "HANDLE", Full, 0 }, + { "ACCEL", Half, 1 }, + { "BRAKE", Half, 2 }, + { NULL }, + }, +}; + // // AtomisWave games //