mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-07-11 01:25:15 +02:00
coreinit: Stub MCP_DemoGetRemainder to 99 (#1902)
This commit is contained in:
@@ -421,6 +421,15 @@ namespace coreinit
|
|||||||
return 0;
|
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()
|
void InitializeMCP()
|
||||||
{
|
{
|
||||||
osLib_addFunction("coreinit", "MCP_Open", coreinitExport_MCP_Open);
|
osLib_addFunction("coreinit", "MCP_Open", coreinitExport_MCP_Open);
|
||||||
@@ -450,6 +459,7 @@ namespace coreinit
|
|||||||
cafeExportRegister("coreinit", MCP_GetEcoSettings, LogType::Placeholder);
|
cafeExportRegister("coreinit", MCP_GetEcoSettings, LogType::Placeholder);
|
||||||
|
|
||||||
cafeExportRegister("coreinit", MCP_GetTitleId, LogType::Placeholder);
|
cafeExportRegister("coreinit", MCP_GetTitleId, LogType::Placeholder);
|
||||||
|
cafeExportRegister("coreinit", MCP_DemoLaunchGetRemainder, LogType::Placeholder);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user