1
0
mirror of synced 2024-11-27 19:10:48 +01:00

VT3_testmode

This commit is contained in:
dkeruza 2023-12-06 17:00:57 -05:00
parent a4b81bdb85
commit f38162cd09
4 changed files with 20 additions and 0 deletions

View File

@ -135,6 +135,13 @@ static int detectGame(uint32_t elf_crc)
if (elf_crc == 0xc4b7e89)
{
config.game = VT3;
config.gameStatus = WORKING;
return 0;
}
if (elf_crc == 0xffe3b0fd)
{
config.game = VT3_TESTMODE;
config.gameStatus = NOT_WORKING;
return 0;
}
@ -183,6 +190,8 @@ char *getGameName()
return "R-Tuned Ultimate Street Racing";
case VT3:
return "Virtua Tennis 3";
case VT3_TESTMODE:
return "Virtua Tennis 3 - Testmode";
case VF5_REVC:
return "Virtua Fighter 5 - RevC";
default:

View File

@ -21,6 +21,7 @@ typedef enum
SRTV,
RTUNED,
VT3,
VT3_TESTMODE,
VF5_REVC
} Game;

View File

@ -16,6 +16,7 @@
#include <netinet/in.h>
#include <arpa/inet.h>
#include <cpuid.h>
#include <unistd.h>
#include "hook.h"

View File

@ -455,6 +455,15 @@ int initPatch()
detourFunction(0x0831c64f, stub0);
setVariable(0x0827ae1b, 0x34891beb); //Disable Fullscreen
}
case VT3_TESTMODE:
{
detourFunction(0x0815f610, amDongleInit);
detourFunction(0x0815f923, amDongleIsAvailable);
detourFunction(0x0815f88a, amDongleUpdate);
detourFunction(0x0815d06b, amDipswGetData);
detourFunction(0x0815d0e3, stub0);
//setVariable(0x0827ae1b, 0x34891beb); //Disable Fullscreen
}
break;
default:
// Don't do any patches for random games