fix(libSceSysmodule): recognize Trophy2 module id
This commit is contained in:
parent
af45296363
commit
5ee3ef8cb8
|
|
@ -149,6 +149,7 @@ inline const std::unordered_map<std::uint32_t, const char*> kModuleTable = {
|
|||
{0x00000109, "libSceHdrScopes"},
|
||||
{0x0000010c, "libSceCesCs"},
|
||||
{0x0000010d, "libScePlayerInvitationDialog"},
|
||||
{0x00000110, "libSceNpTrophy2"},
|
||||
{0x00000112, "libSceNpSessionSignaling"},
|
||||
{0x00000113, "libSceNpEntitlementAccess"},
|
||||
{0x00000115, "libSceNpCppWebApi"},
|
||||
|
|
|
|||
|
|
@ -39,6 +39,7 @@ bool ThrowsRuntimeError(TFunction function) {
|
|||
constexpr std::uint16_t kFiberModuleId = 0x0006;
|
||||
constexpr std::uint16_t kUltModuleId = 0x0007;
|
||||
constexpr int kModuleUnloaded = static_cast<int>(0x805A1001);
|
||||
constexpr std::uint16_t kTrophy2ModuleId = 0x0110;
|
||||
|
||||
#ifdef __linux__
|
||||
struct Mapping {
|
||||
|
|
@ -113,6 +114,16 @@ int main() {
|
|||
Require(sceSysmoduleIsLoaded(kUltModuleId) == 0);
|
||||
Require(sceSysmoduleUnloadModule(kUltModuleId) == 0);
|
||||
Require(sceSysmoduleIsLoaded(kUltModuleId) == kModuleUnloaded);
|
||||
|
||||
Require(sceSysmoduleIsLoaded(kTrophy2ModuleId) == kModuleUnloaded);
|
||||
Require(sceSysmoduleLoadModuleInternal(kTrophy2ModuleId) == 0);
|
||||
Require(sceSysmoduleIsLoaded(kTrophy2ModuleId) == 0);
|
||||
Require(sceSysmoduleLoadModuleInternal(kTrophy2ModuleId) == 0);
|
||||
Require(sceSysmoduleUnloadModuleInternal(kTrophy2ModuleId) == 0);
|
||||
Require(sceSysmoduleIsLoaded(kTrophy2ModuleId) == 0);
|
||||
Require(sceSysmoduleUnloadModuleInternal(kTrophy2ModuleId) == 0);
|
||||
Require(sceSysmoduleIsLoaded(kTrophy2ModuleId) == kModuleUnloaded);
|
||||
Require(sceSysmoduleUnloadModuleInternal(kTrophy2ModuleId) == kModuleUnloaded);
|
||||
#ifdef __linux__
|
||||
CheckUnwindInfo();
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue