mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-05-12 15:59:38 -06:00
coreinit: Stub MCP_DemoGetRemainder to 99 (#1902)
This commit is contained in:
parent
0fc7403543
commit
6ab2f501ff
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user