1
0
mirror of synced 2025-01-20 09:42:49 +01:00

Fix BlazBlue and Battle Fantasia

- Fix Daytona 3 compile bug
- Fix BlazBlue
- Fix Battle Fantasia
Enjoy pasta pizza mamma mia.
This commit is contained in:
Nico Giansanti 2021-01-21 23:34:15 +02:00
parent 881aca041a
commit 3621ca37cb
4 changed files with 15 additions and 1 deletions

View File

@ -303,6 +303,7 @@ static int ThreadLoop()
*(DWORD*)(imageBase + 0x15B5DB0) = 0x03;
}
}
return 0;
}
static DWORD WINAPI RunningLoop(LPVOID lpParam)

View File

@ -1049,6 +1049,11 @@ static DWORD WINAPI KOFSkyStageRunningLoop(LPVOID lpParam)
}
}
static int ReturnsTrue()
{
return 1;
}
static InitFunction initFunction([]()
{
DWORD imageBase = (DWORD)GetModuleHandleA(0);
@ -1304,6 +1309,8 @@ static InitFunction initFunction([]()
injector::MakeNOP(imageBase + 0xD062, 2, true);
// injector::WriteMemory<BYTE>(imageBase + 0xD055, 0xEB, true); // alternative patch?
injector::MakeJMP(imageBase + 0xFF0A0, ReturnsTrue);
DWORD oldPageProtection = 0;
if (ToBool(config["General"]["Windowed"]))
@ -1319,6 +1326,11 @@ static InitFunction initFunction([]()
break;
}
case X2Type::BlazBlue:
{
injector::MakeJMP(imageBase + 0xECFD0, ReturnsTrue);
}
break;
}
if(GameDetect::currentGame == GameID::KOFMIRA)

View File

@ -13,4 +13,5 @@ enum class X2Type {
MB4,
Wontertainment,
BG4_Eng,
BlazBlue
};

View File

@ -241,7 +241,7 @@ void GameDetect::DetectCurrentGame()
break;
case 0xf9297ecb: // BlazBlue
currentGame = GameID::BlazBlue;
X2Type = X2Type::Generic;
X2Type = X2Type::BlazBlue;
break;
case 0xee568daa: // BlazBlue Continuum Shift II
currentGame = GameID::BlazBlueCS2;