1
0
mirror of synced 2025-02-17 10:38:32 +01:00

Merge pull request #7 from dkeruza-neo/master

Added patches for Sega Race TV, R-Tunned and a different ELF of After Burner
This commit is contained in:
Bobby Dilley 2023-11-13 12:02:33 +00:00 committed by GitHub
commit 031044c5bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 52 additions and 3 deletions

View File

@ -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;
}
@ -90,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";
}

View File

@ -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

View File

@ -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;
}
}