1
0
mirror of synced 2025-01-20 17:48:51 +01:00

Fix Tekken 7 FR Problems

- Fix Windowed Mode
- Fix First Check Error when returning from TEST
This commit is contained in:
Reaver 2019-11-11 14:30:45 +02:00
parent 3acde60af9
commit 60d07b00bc
6 changed files with 17 additions and 7 deletions

View File

@ -18,7 +18,15 @@ static InitFunction Tekken7Func([]()
// Skip all errors
injector::MakeNOP(imageBase + 0x25E791, 5);
// Force Offline mode
//safeJMP(imageBase + 0xACB190, ReturnFalse);
}, GameID::Tekken7);
// First Check Error
injector::MakeNOP(imageBase + 0x268E00, 5);
// Windowed
if (ToBool(config["General"]["Windowed"]))
{
// TODO: DOCUMENT PATCHES
injector::WriteMemory<LONGLONG>(imageBase + 0x115E757, 0xF633C1FFC1FFC933, true);
injector::WriteMemory<DWORD>(imageBase + 0x115E757 + 0x08, 0xC6FFC6FF, true);
}
}, GameID::TER);
#endif

View File

@ -80,6 +80,8 @@ static InitFunction initFunc([]()
{
if (GameDetect::currentGame == GameID::BG4)
return;
if (GameDetect::currentGame == GameID::TER)
return;
if (GameDetect::currentGame == GameID::FNFSC)
InitD3D8WindowHook();
if (ToBool(config["General"]["Windowed"]))

View File

@ -70,7 +70,7 @@ extern linb::ini config;
static InitFunction initFunc([]()
{
if (GameDetect::currentGame == GameID::BG4 || GameDetect::currentGame == GameID::JLeague)
if (GameDetect::currentGame == GameID::BG4 || GameDetect::currentGame == GameID::JLeague || GameDetect::currentGame == GameID::TER)
return;
if (ToBool(config["General"]["Windowed"]))
{

View File

@ -241,7 +241,7 @@ extern linb::ini config;
static InitFunction initFunc([]()
{
if (GameDetect::currentGame == GameID::PokkenTournament || GameDetect::currentGame == GameID::SchoolOfRagnarok || GameDetect::currentGame == GameID::Tekken7)
if (GameDetect::currentGame == GameID::PokkenTournament || GameDetect::currentGame == GameID::SchoolOfRagnarok || GameDetect::currentGame == GameID::TER)
return;
if (ToBool(config["General"]["Windowed"]))
{

View File

@ -475,7 +475,7 @@ void GameDetect::DetectCurrentGame()
currentGame = GameID::Theatrhythm;
break;
case 0xdb9c3a90:
currentGame = GameID::Tekken7;
currentGame = GameID::TER;
break;
#endif
default:

View File

@ -60,5 +60,5 @@ enum class GameID
GHA,
JLeague,
Theatrhythm,
Tekken7
TER
};