coreinit: Stub MCP_DemoGetRemainder to 99 (#1902)

This commit is contained in:
Hr. Vedel 2026-05-09 15:23:45 +02:00 committed by GitHub
parent 0fc7403543
commit 6ab2f501ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -421,6 +421,15 @@ namespace coreinit
return 0;
}
uint32 MCP_DemoLaunchGetRemainder(uint32 mcpHandle, uint64 titleId, uint32be* outRemainder)
{
// stub to always return 99 uses remaining for game demos.
// used by drmapp.rpl to determine remaining uses for game demos
if (outRemainder)
*outRemainder = 99;
return 0;
}
void InitializeMCP()
{
osLib_addFunction("coreinit", "MCP_Open", coreinitExport_MCP_Open);
@ -450,6 +459,7 @@ namespace coreinit
cafeExportRegister("coreinit", MCP_GetEcoSettings, LogType::Placeholder);
cafeExportRegister("coreinit", MCP_GetTitleId, LogType::Placeholder);
cafeExportRegister("coreinit", MCP_DemoLaunchGetRemainder, LogType::Placeholder);
}
}