mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Add a sceOpenPSID_driver nid
Used in "Shin Sangoku Musou 6 special" chinese patched game
This commit is contained in:
parent
b879b436fa
commit
2fcb55a772
3 changed files with 27 additions and 0 deletions
|
@ -252,6 +252,7 @@ void RegisterAllModules() {
|
|||
Register_scePsmf();
|
||||
Register_scePsmfPlayer();
|
||||
Register_sceOpenPSID();
|
||||
Register_sceOpenPSID_driver();
|
||||
Register_sceParseUri();
|
||||
Register_sceSsl();
|
||||
Register_sceParseHttp();
|
||||
|
|
|
@ -35,6 +35,21 @@ static int sceOpenPSIDGetOpenPSID(u32 OpenPSIDPtr)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int sceOpenPSID_driver_0x19D579F0(u32 OpenPSIDPtr,u32 unknown)
|
||||
{
|
||||
ERROR_LOG(HLE, "UNTESTED sceOpenPSID_driver_0x19D579F0(%d,%d)", OpenPSIDPtr,unknown);
|
||||
u8 dummyOpenPSID[16] = { 0x10, 0x02, 0xA3, 0x44, 0x13, 0xF5, 0x93, 0xB0, 0xCC, 0x6E, 0xD1, 0x32, 0x27, 0x85, 0x0F, 0x9D };
|
||||
|
||||
if (Memory::IsValidAddress(OpenPSIDPtr))
|
||||
{
|
||||
for (int i = 0; i < 16; i++)
|
||||
{
|
||||
Memory::Write_U8(dummyOpenPSID[i], OpenPSIDPtr + i);
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
const HLEFunction sceOpenPSID[] =
|
||||
{
|
||||
{0XC69BEBCE, &WrapI_U<sceOpenPSIDGetOpenPSID>, "sceOpenPSIDGetOpenPSID", 'i', "x"},
|
||||
|
@ -44,3 +59,13 @@ void Register_sceOpenPSID()
|
|||
{
|
||||
RegisterModule("sceOpenPSID", ARRAY_SIZE(sceOpenPSID), sceOpenPSID);
|
||||
}
|
||||
|
||||
const HLEFunction sceOpenPSID_driver[] =
|
||||
{
|
||||
{0x19D579F0, &WrapI_UU<sceOpenPSID_driver_0x19D579F0>, "sceOpenPSID_driver_0x19D579F0", 'i', "xx" },
|
||||
};
|
||||
|
||||
void Register_sceOpenPSID_driver()
|
||||
{
|
||||
RegisterModule("sceOpenPSID_driver", ARRAY_SIZE(sceOpenPSID_driver), sceOpenPSID_driver);
|
||||
}
|
|
@ -20,3 +20,4 @@
|
|||
void __sceOpenPSIDInit();
|
||||
|
||||
void Register_sceOpenPSID();
|
||||
void Register_sceOpenPSID_driver();
|
Loading…
Add table
Reference in a new issue