1
0
mirror of synced 2024-11-14 06:37:36 +01:00
This commit is contained in:
dkeruza 2023-11-20 14:55:32 -05:00
parent a257a21e30
commit f142ffebcc
6 changed files with 18 additions and 2 deletions

View File

@ -1,5 +1,5 @@
CC=gcc -m32
CFLAGS = -g -O0 -fPIC -m32 -D_GNU_SOURCE -Wall -Werror -Wno-unused-variable -Wno-unused-function
CFLAGS = -g -O0 -fPIC -m32 -Wall -Werror -Wno-unused-variable -Wno-unused-function
LD = g++ -m32
LDFLAGS = -Wl,-z,defs -rdynamic -static-libstdc++ -static-libgcc -lc -ldl -lGL -lglut -lX11 -lm -lpthread -shared -nostdlib

BIN
src/hookcrc32/hookcrc32.so Executable file

Binary file not shown.

Binary file not shown.

View File

@ -109,6 +109,12 @@ static int detectGame(uint32_t elf_crc)
config.game = VT3;
return 0;
}
if (elf_crc == 0x1bf1b627)
{
config.game = VF5_REVC;
return 0;
}
config.game = UNKNOWN;
return 1;
@ -141,6 +147,8 @@ char *getGameName()
return "R-Tuned Ultimate Street Racing";
case VT3:
return "Virtua Tennis 3";
case VF5_REVC:
return "Virtua Fighter 5 - RevC";
default:
return "Unknown Game";
}

View File

@ -17,7 +17,8 @@ typedef enum
ABC_2007,
SRTV,
RTUNED,
VT3
VT3,
VF5_REVC
} Game;
typedef enum

View File

@ -180,6 +180,13 @@ int initPatch()
setVariable(0x08072195, cpu_vendor.ecx);
}
break;
case VF5_REVC:
{
detourFunction(0x085c6010, amDongleInit);
detourFunction(0x085c63cc, amDongleIsAvailable);
detourFunction(0x085c62f0, amDongleUpdate);
}
break;
default:
// Don't do any patches for random games
break;