From 528235ce9d30c6a28deefec093efe696aa2564fc Mon Sep 17 00:00:00 2001 From: Flyinghead Date: Mon, 30 Jan 2023 13:28:14 +0100 Subject: [PATCH] jvs: fix kingrt66 instant win with accelerator --- core/hw/maple/maple_jvs.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/hw/maple/maple_jvs.cpp b/core/hw/maple/maple_jvs.cpp index 6428156b7..874794a81 100644 --- a/core/hw/maple/maple_jvs.cpp +++ b/core/hw/maple/maple_jvs.cpp @@ -809,7 +809,7 @@ maple_naomi_jamma::maple_naomi_jamma() io_boards.push_back(std::unique_ptr(new jvs_837_13844(1, this))); break; case JVS::DualIOBoards4P: - if (!strcmp(naomi_game_id, "VIRTUA ATHLETE")) + if (settings.content.gameId == "VIRTUA ATHLETE") { // reverse the board order so that P1 is P1 io_boards.push_back(std::unique_ptr(new jvs_837_13551(1, this, 2))); @@ -1712,6 +1712,9 @@ u32 jvs_io_board::handle_jvs_message(u8 *buffer_in, u32 length_in, u8 *buffer_ou axis_value = 0; if (axisDesc.inverted) axis_value = 0xff00u - axis_value; + // this fixes kingrt66 immediate win + if (axis_value == 0x8000) + axis_value = 0x8100; } else {