Fix APM3 Emu
- Fix badly emulated APM3 call - Add profiles for new dumped titles
This commit is contained in:
parent
a638b35230
commit
b6f62286af
@ -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()
|
||||
|
@ -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
|
||||
|
@ -126,5 +126,7 @@ enum class GameID
|
||||
WMMT5DX,
|
||||
Aleste11,
|
||||
CottonRocknRollA,
|
||||
CottonRocknRollATest
|
||||
CottonRocknRollATest,
|
||||
NosferatuLilinor,
|
||||
Kasiori
|
||||
};
|
Loading…
x
Reference in New Issue
Block a user