1
0
mirror of synced 2025-02-01 04:15:50 +01:00

- Add support for BlazBlue Central Fiction 2.01

- Add support for BlazBlue Central Fiction 2.01
This commit is contained in:
Nezarn 2020-07-29 20:12:36 +02:00
parent cfbed677bd
commit 456252541f
4 changed files with 32 additions and 3 deletions

View File

@ -430,6 +430,29 @@ static InitFunction initFunction_KOF2002([]()
#endif
}, GameID::KOF2002);
static InitFunction initFunction_BlazBlueCF201([]()
{
uintptr_t imageBase = (uintptr_t)GetModuleHandleA(0);
init_FastIoEmu();
init_RfidEmu();
init_RegHooks();
if (GameDetect::enableNesysEmu)
init_NesysEmu();
#if _M_IX86
init_CryptoPipe(GameDetect::NesicaKey);
#endif
// skip nesys error
injector::MakeNOP(imageBase + 0x7D932, 6, true);
injector::MakeJMP(imageBase + 0x7D932, imageBase + 0x7DA03, true);
// unlock colors
injector::WriteMemory<BYTE>(imageBase + 0x1B0408, 0x18, true);
injector::WriteMemory<BYTE>(imageBase + 0x1B04D2, 0x18, true);
injector::WriteMemory<BYTE>(imageBase + 0x1B04FD, 0x75, true);
}, GameID::BlazBlueCF201);
static InitFunction initFunction_Theatrhythm([]()
{
uintptr_t imageBase = (uintptr_t)GetModuleHandleA(0);

View File

@ -3,7 +3,7 @@ enum class NesicaKey
{
None = -1,
MagicalBeat = 0,
BlazBlueCentralFriction = 1,
BlazBlueCentralFiction = 1,
Persona4Arena = 2,
BlazBlueChronoPhantasma = 3,
KOFXIIIClimax = 4,

View File

@ -47,7 +47,7 @@ void GameDetect::DetectCurrentGame()
break;
case 0x6e67076f:
currentGame = GameID::Nesica;
NesicaKey = NesicaKey::BlazBlueCentralFriction;
NesicaKey = NesicaKey::BlazBlueCentralFiction;
isNesica = true;
break;
case 0xd98bed41: // Crimzon Clover
@ -580,6 +580,11 @@ void GameDetect::DetectCurrentGame()
NesicaKey = NesicaKey::None;
isNesica = true;
break;
case 0x31e72d72: // BlazBlue Central Fiction 2.01
currentGame = GameID::BlazBlueCF201;
NesicaKey = NesicaKey::BlazBlueCentralFiction;
isNesica = true;
break;
#ifdef _AMD64_
case 0x80ebd207:
currentGame = GameID::Theatrhythm;

View File

@ -89,5 +89,6 @@ enum class GameID
TroubleWitchesNesica,
Yatagarasu,
Exception,
KOF2002
KOF2002,
BlazBlueCF201
};