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

- Homura (Nesica): fix mouse in windowed mode

- Homura (Nesica): fix mouse in windowed mode
This commit is contained in:
Nezarn 2020-07-01 12:37:59 +02:00
parent 9a395b49dd
commit 4bb77cac09
3 changed files with 27 additions and 2 deletions

View File

@ -322,6 +322,30 @@ static InitFunction initFunction_DoNotFall([]()
#endif
}, GameID::DoNotFall);
static InitFunction initFunction_HomuraNesica([]()
{
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
if (ToBool(config["General"]["Windowed"]))
{
// don't set cursor POS to X=240 Y=320
injector::MakeNOP(imageBase + 0x123394, 16, true);
injector::MakeNOP(imageBase + 0x1235AE, 16, true);
// show cursor
injector::WriteMemory<BYTE>(imageBase + 0x1233A5, 0x01, true);
injector::WriteMemory<BYTE>(imageBase + 0x1235BF, 0x01, true);
}
}, GameID::HomuraNesica);
static InitFunction initFunction_Theatrhythm([]()
{
uintptr_t imageBase = (uintptr_t)GetModuleHandleA(0);

View File

@ -155,7 +155,7 @@ void GameDetect::DetectCurrentGame()
isNesica = true;
break;
case 0xabc41e0a: // Homura
currentGame = GameID::Nesica;
currentGame = GameID::HomuraNesica;
NesicaKey = NesicaKey::None;
isNesica = true;
break;

View File

@ -81,5 +81,6 @@ enum class GameID
KOF98Nesica,
VampireSavior,
ChaosCode,
DoNotFall
DoNotFall,
HomuraNesica
};