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

Fix APM3 Emu

- Fix badly emulated APM3 call
- Add profiles for new dumped titles
This commit is contained in:
Reaver 2021-11-01 16:53:14 +02:00
parent a638b35230
commit b6f62286af
3 changed files with 29 additions and 3 deletions

View File

@ -536,12 +536,14 @@ SystemRegionCode System_getRegionCode()
return SystemRegionCode::Japan;
}
DWORD_PTR System_getResolution()
DWORD_PTR resolution = 0;
DWORD_PTR *System_getResolution()
{
#ifdef _LOGAPM3
info(true, "System_getResolution");
#endif
return System_getResolutionReturnValue;
return &resolution;
}
DWORD_PTR System_isDevelop()
@ -1067,6 +1069,22 @@ static InitFunction initDoa6TestFunc([]()
__int64 mainModuleBase = (__int64)GetModuleHandle(0);
}, GameID::Doa6Test);
static InitFunction initNosferatuLilinorTestFunc([]()
{
HookAPM3(L"SDHP");
__int64 mainModuleBase = (__int64)GetModuleHandle(0);
}, GameID::NosferatuLilinor);
static InitFunction initKasioriTestFunc([]()
{
HookAPM3(L"SDHV");
__int64 mainModuleBase = (__int64)GetModuleHandle(0);
}, GameID::Kasiori);
#else
void __declspec(naked) setOption_x86()

View File

@ -735,6 +735,12 @@ void GameDetect::DetectCurrentGame()
case 0xd9557fd6:
SetGameId(GameID::CottonRocknRollATest, "Cotton Rock n Roll A Test Menu");
break;
case 0x6dfc8f9a:
SetGameId(GameID::NosferatuLilinor, "Nosferatu Lilinor");
break;
case 0x5451ddfd:
SetGameId(GameID::NosferatuLilinor, "Kasiori");
break;
#endif
default:
#ifdef _DEBUG

View File

@ -126,5 +126,7 @@ enum class GameID
WMMT5DX,
Aleste11,
CottonRocknRollA,
CottonRocknRollATest
CottonRocknRollATest,
NosferatuLilinor,
Kasiori
};