diff --git a/OpenParrot/Tekken7.cpp b/OpenParrot/Tekken7.cpp new file mode 100644 index 0000000..89efd6d --- /dev/null +++ b/OpenParrot/Tekken7.cpp @@ -0,0 +1,24 @@ +#include +#include "Utility/InitFunction.h" +#include "Functions/Global.h" +#include "MinHook.h" +#include +#include +#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 \ No newline at end of file diff --git a/OpenParrot/src/Functions/WindowedDxgi.cpp b/OpenParrot/src/Functions/WindowedDxgi.cpp index 5c6a906..c78918a 100644 --- a/OpenParrot/src/Functions/WindowedDxgi.cpp +++ b/OpenParrot/src/Functions/WindowedDxgi.cpp @@ -241,7 +241,7 @@ extern linb::ini config; 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; if (ToBool(config["General"]["Windowed"])) { diff --git a/OpenParrot/src/Utility/GameID.h b/OpenParrot/src/Utility/GameID.h index da06b82..d276bc8 100644 --- a/OpenParrot/src/Utility/GameID.h +++ b/OpenParrot/src/Utility/GameID.h @@ -59,5 +59,6 @@ enum class GameID FNFSB2, GHA, JLeague, - Theatrhythm + Theatrhythm, + Tekken7 }; \ No newline at end of file