From 2a83af6dbf86ffba6f21250062e0555c6d354954 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 2 Apr 2014 19:24:39 -0400 Subject: [PATCH] Stub some sceNp funcs --- rpcs3/Emu/SysCalls/Modules/sceNp.cpp | 35 ++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/rpcs3/Emu/SysCalls/Modules/sceNp.cpp b/rpcs3/Emu/SysCalls/Modules/sceNp.cpp index d14f440b24..ec37e7592b 100644 --- a/rpcs3/Emu/SysCalls/Modules/sceNp.cpp +++ b/rpcs3/Emu/SysCalls/Modules/sceNp.cpp @@ -73,6 +73,36 @@ int sceNpDrmIsAvailable(u32 k_licensee_addr, u32 drm_path_addr) return CELL_OK; } +int sceNpDrmIsAvailable2(u32 k_licensee_addr, u32 drm_path_addr) +{ + UNIMPLEMENTED_FUNC(sceNp); + return CELL_OK; +} + +int sceNpDrmVerifyUpgradeLicense(u32 content_id_addr) +{ + UNIMPLEMENTED_FUNC(sceNp); + return CELL_OK; +} + +int sceNpDrmVerifyUpgradeLicense2(u32 content_id_addr) +{ + UNIMPLEMENTED_FUNC(sceNp); + return CELL_OK; +} + +int sceNpDrmExecuteGamePurchase() +{ + UNIMPLEMENTED_FUNC(sceNp); + return CELL_OK; +} + +int sceNpDrmGetTimelimit(u32 drm_path_addr, mem64_t time_remain_usec) +{ + UNIMPLEMENTED_FUNC(sceNp); + return CELL_OK; +} + int sceNpManagerGetStatus(mem32_t status) { sceNp.Log("sceNpManagerGetStatus(status_addr=0x%x)", status.GetAddr()); @@ -91,5 +121,10 @@ void sceNp_init() sceNp.AddFunc(0xbd28fdbf, sceNpInit); sceNp.AddFunc(0x4885aa18, sceNpTerm); sceNp.AddFunc(0xad218faf, sceNpDrmIsAvailable); + sceNp.AddFunc(0xf042b14f, sceNpDrmIsAvailable2); + sceNp.AddFunc(0x2ecd48ed, sceNpDrmVerifyUpgradeLicense); + sceNp.AddFunc(0xbe0e3ee2, sceNpDrmVerifyUpgradeLicense2); + sceNp.AddFunc(0xf283c143, sceNpDrmExecuteGamePurchase); + sceNp.AddFunc(0xcf51864b, sceNpDrmGetTimelimit); sceNp.AddFunc(0xa7bff757, sceNpManagerGetStatus); }