1
0
mirror of synced 2025-02-23 21:43:35 +01:00

TR7 Force Offline

TR7 Force Offline
This commit is contained in:
Reaver 2019-11-19 18:28:17 +02:00
parent d82d5847f6
commit 336882cb4e

View File

@ -10,11 +10,31 @@
extern LPCSTR hookPort;
// Lan fix funcs, fixes not yet committed.
static int ReturnFalse()
{
return 0;
}
static int ReturnTrue()
{
return 1;
}
static int ReturnsTwo()
{
return 2;
}
static InitFunction Tekken7Func([]()
{
hookPort = ("COM3");
uintptr_t imageBase = (uintptr_t)GetModuleHandleA(0);
// Force Offline mode
safeJMP(imageBase + 0x204AF0, ReturnTrue);
// Skip all errors
injector::MakeNOP(imageBase + 0x25E791, 5);