added Tekken 7 FR Support
This commit is contained in:
parent
6881e89810
commit
d8b2e61425
24
OpenParrot/Tekken7.cpp
Normal file
24
OpenParrot/Tekken7.cpp
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
#include <StdInc.h>
|
||||||
|
#include "Utility/InitFunction.h"
|
||||||
|
#include "Functions/Global.h"
|
||||||
|
#include "MinHook.h"
|
||||||
|
#include <Utility/Hooking.Patterns.h>
|
||||||
|
#include <thread>
|
||||||
|
#ifdef _M_AMD64
|
||||||
|
#pragma optimize("", off)
|
||||||
|
#pragma comment(lib, "Ws2_32.lib")
|
||||||
|
|
||||||
|
extern LPCSTR hookPort;
|
||||||
|
|
||||||
|
static InitFunction Tekken7Func([]()
|
||||||
|
{
|
||||||
|
hookPort = ("COM3");
|
||||||
|
uintptr_t imageBase = (uintptr_t)GetModuleHandleA(0);
|
||||||
|
|
||||||
|
// Skip all errors
|
||||||
|
injector::MakeNOP(imageBase + 0x25E791, 5);
|
||||||
|
|
||||||
|
// Force Offline mode
|
||||||
|
//safeJMP(imageBase + 0xACB190, ReturnFalse);
|
||||||
|
}, GameID::Tekken7);
|
||||||
|
#endif
|
@ -241,7 +241,7 @@ extern linb::ini config;
|
|||||||
|
|
||||||
static InitFunction initFunc([]()
|
static InitFunction initFunc([]()
|
||||||
{
|
{
|
||||||
if (GameDetect::currentGame == GameID::PokkenTournament || GameDetect::currentGame == GameID::SchoolOfRagnarok)
|
if (GameDetect::currentGame == GameID::PokkenTournament || GameDetect::currentGame == GameID::SchoolOfRagnarok || GameDetect::currentGame == GameID::Tekken7)
|
||||||
return;
|
return;
|
||||||
if (ToBool(config["General"]["Windowed"]))
|
if (ToBool(config["General"]["Windowed"]))
|
||||||
{
|
{
|
||||||
|
@ -59,5 +59,6 @@ enum class GameID
|
|||||||
FNFSB2,
|
FNFSB2,
|
||||||
GHA,
|
GHA,
|
||||||
JLeague,
|
JLeague,
|
||||||
Theatrhythm
|
Theatrhythm,
|
||||||
|
Tekken7
|
||||||
};
|
};
|
Loading…
x
Reference in New Issue
Block a user