TR7 Force Offline
TR7 Force Offline
This commit is contained in:
parent
d82d5847f6
commit
336882cb4e
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user