From 8cec0997d84c99dc35bef17fd4e998b72642f2fe Mon Sep 17 00:00:00 2001 From: dkeruza Date: Sat, 11 Nov 2023 16:22:31 -0500 Subject: [PATCH 1/4] Added patches for Sega Race Tv, R-Tunned and ABC. --- src/lindbergh/patch.c | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/src/lindbergh/patch.c b/src/lindbergh/patch.c index 6d2b2f9..6d5beaa 100644 --- a/src/lindbergh/patch.c +++ b/src/lindbergh/patch.c @@ -70,7 +70,29 @@ int initPatch() switch (game) { - + case RTUNED: + { + detourFunction(0x08366846, amDongleInit); + detourFunction(0x08365301, amDongleIsAvailable); + detourFunction(0x08365cf7, amDongleUpdate); + } + break; + + case SRTV: + { + detourFunction(0x084d5b40, amDongleInit); + detourFunction(0x084d45f9, amDongleIsAvailable); + detourFunction(0x084d4fef, amDongleUpdate); + } + break; + + case ABC: + { + detourFunction(0x081e3424, amDongleInit); + detourFunction(0x081e3772, amDongleIsAvailable); + detourFunction(0x081e369e, amDongleUpdate); + } + break; case OUTRUN: { setVariable(0x0893a24c, 2); // amBackupDebugLevel @@ -119,4 +141,4 @@ int initPatch() } return 0; -} \ No newline at end of file +} From 3def1d9a49e160a17ba6f7b64d2b75215ef5b122 Mon Sep 17 00:00:00 2001 From: dkeruza Date: Sat, 11 Nov 2023 16:24:10 -0500 Subject: [PATCH 2/4] Added game detection --- src/lindbergh/config.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/lindbergh/config.c b/src/lindbergh/config.c index e7e9bab..17fd68c 100644 --- a/src/lindbergh/config.c +++ b/src/lindbergh/config.c @@ -70,6 +70,24 @@ static int detectGame() return 0; } + if (strstr(program_invocation_name, "abc1080")) + { + config.game = ABC; + return 0; + } + + if (strstr(program_invocation_name, "drive")) + { + config.game = SRTV; + return 0; + } + + if (strstr(program_invocation_name, "dsr")) + { + config.game = RTUNED; + return 0; + } + config.game = UNKNOWN; return 1; } From 3d6dc1acb4f93d50c32cade65fc54af93fdc7a23 Mon Sep 17 00:00:00 2001 From: dkeruza Date: Sat, 11 Nov 2023 16:24:59 -0500 Subject: [PATCH 3/4] Added games detection. --- src/lindbergh/config.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lindbergh/config.c b/src/lindbergh/config.c index 17fd68c..e87380d 100644 --- a/src/lindbergh/config.c +++ b/src/lindbergh/config.c @@ -108,6 +108,12 @@ char *getGameName() return "The House of the Dead 4"; case LETS_GO_JUNGLE: return "Let's Go Jungle! Lost on the Island of Spice"; + case ABC: + return "After Burner Climax"; + case SRTV: + return "SEGA Race TV"; + case RTUNED: + return "R-Tuned Ultimate Street Racing"; default: return "Unknown Game"; } From b9f7dd1161bc2d58ad04ddb1126e4328b24a8691 Mon Sep 17 00:00:00 2001 From: dkeruza Date: Sat, 11 Nov 2023 16:26:44 -0500 Subject: [PATCH 4/4] Added games. --- src/lindbergh/config.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lindbergh/config.h b/src/lindbergh/config.h index 841605f..8befbf4 100644 --- a/src/lindbergh/config.h +++ b/src/lindbergh/config.h @@ -11,7 +11,10 @@ typedef enum THE_HOUSE_OF_THE_DEAD_4, OUTRUN, OUTRUN_TEST, - LETS_GO_JUNGLE + LETS_GO_JUNGLE, + ABC, + SRTV, + RTUNED } Game; typedef enum