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:
parent
881aca041a
commit
3621ca37cb
@ -303,6 +303,7 @@ static int ThreadLoop()
|
||||
*(DWORD*)(imageBase + 0x15B5DB0) = 0x03;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
static DWORD WINAPI RunningLoop(LPVOID lpParam)
|
||||
|
@ -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)
|
||||
|
@ -13,4 +13,5 @@ enum class X2Type {
|
||||
MB4,
|
||||
Wontertainment,
|
||||
BG4_Eng,
|
||||
BlazBlue
|
||||
};
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user