From 8cec0997d84c99dc35bef17fd4e998b72642f2fe Mon Sep 17 00:00:00 2001 From: dkeruza Date: Sat, 11 Nov 2023 16:22:31 -0500 Subject: [PATCH] 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 +}