[Aggregation Issue] Missing and stubbed functions #1960

Open
opened 2026-11-26 10:10:06 +00:00 by github-bot · 8 comments
Owner

@⁠Ekt0re on GitHub · 2026-10-28 09:20 UTC · original

Just as we do for graphics opcodes, I think it would be useful to create an equivalent for functions that haven't been implemented yet or have been skipped.

Please post errors related to missing functions here so that developers can track them and implement them.

Format

-- {Game serial number} {Game name}
{KytyPS5 version or commit}
{Log lines containing the phrase "function not implemented"}
{Upload the complete _kyty.txt log}

If you want, you can add some notes (You can specify whether you're experiencing issues with the game—such as freezing or crashing—or if the game is still working).`
**@⁠Ekt0re** on GitHub · 2026-10-28 09:20 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1960) *Just as we do for graphics opcodes, I think it would be useful to create an equivalent for functions that haven't been implemented yet or have been skipped.* Please post errors related to missing functions here so that developers can track them and implement them. ### Format ```text -- {Game serial number} {Game name} {KytyPS5 version or commit} {Log lines containing the phrase "function not implemented"} {Upload the complete _kyty.txt log} If you want, you can add some notes (You can specify whether you're experiencing issues with the game—such as freezing or crashing—or if the game is still working).`
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:10:06 +00:00
Author
Owner

@⁠Ekt0re on GitHub · 2026-10-28 09:46 UTC · original · edited 2026-10-31 16:56 UTC

-- PPSA32802: FATAL FRAME II: Crimson Butterfly REMAKE

KytyPS5-2026-10-27-ffc8137 (0.3.0)

Unresolved import stub called: 9kPCz7Or+1Y[SystemService_v1][SystemService_v1.1][Func]

Full log: Reference error (with log): #1950

Notes

Game status: Doesen't

The missing function 9kPCz7Or+1Y also appears in shadPS4, where it maps to sceSystemServiceReenableMusicPlayer().

What it does: it is the counterpart of sceSystemServiceDisableMusicPlayer(). A title can disable the system background music player, and this call re-enables it. It takes no arguments and returns 0 (SCE_OK) on success.

Suggested implementation: shadPS4 handles it entirely with a stub that logs the call and returns OK:

int PS4_SYSV_ABI sceSystemServiceReenableMusicPlayer() {
    LOG_ERROR(Lib_SystemService, "(STUBBED) called");
    return ORBIS_OK;
}

The emulator has no system music player, so a stub returning success should be enough.

**@⁠Ekt0re** on GitHub · 2026-10-28 09:46 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1960#issuecomment-6465740916) · edited 2026-10-31 16:56 UTC -- PPSA32802: FATAL FRAME II: Crimson Butterfly REMAKE KytyPS5-2026-10-27-ffc8137 (0.3.0) ``` Unresolved import stub called: 9kPCz7Or+1Y[SystemService_v1][SystemService_v1.1][Func] ``` Full log: Reference error (with log): https://git.gtahub.st/github/KytyPS5--KytyPS5/issues/1950 **Notes** Game status: Doesen't The missing function `9kPCz7Or+1Y` also appears in shadPS4, where it maps to `sceSystemServiceReenableMusicPlayer()`. **What it does:** it is the counterpart of `sceSystemServiceDisableMusicPlayer()`. A title can disable the system background music player, and this call re-enables it. It takes no arguments and returns `0` (`SCE_OK`) on success. **Suggested implementation:** shadPS4 handles it entirely with a stub that logs the call and returns OK: ```cpp int PS4_SYSV_ABI sceSystemServiceReenableMusicPlayer() { LOG_ERROR(Lib_SystemService, "(STUBBED) called"); return ORBIS_OK; } ``` The emulator has no system music player, so a stub returning success should be enough.
Author
Owner

@⁠Ekt0re on GitHub · 2026-10-28 10:01 UTC · original · edited 2026-10-31 16:57 UTC

-- PPSA25256: Carmen Sandiego

KytyPS5-2026-10-27-ffc8137 (0.3.0)

Unresolved import stub called [0..2]: patch_vaddr=0x0000000905e642e0 jmprela_index=53 symbol=fgIsQ10xYVA[libkernel_v1][libkernel_v1.1][Func] type=Func bind=Global program=.../eboot.bin

Full log: Reference error (with log): #1953

Notes

Game status: In game

The missing function fgIsQ10xYVA (libkernel, libkernel_v1 / libkernel_v1.1, global function export) maps in shadPS4 to sceKernelChmod(), registered as LIB_FUNCTION("fgIsQ10xYVA", "libkernel", ...).

What it does: it changes the permission bits of a file or directory, like the POSIX chmod(path, mode) call.

s32 sceKernelChmod(const char* path, u32 mode);
  • path: guest path of the file or directory (e.g. under /data or /app0).
  • mode: permission bits in octal form (e.g. 0666, 0777).
  • Returns 0 on success, a negative Sce kernel error code on failure.

It is the Sony-style wrapper around the POSIX-style call. The two differ only in how errors are returned:

Variant NID Error reporting
posix_chmod z0dtnPxYgtg returns -1 and sets errno
sceKernelChmod fgIsQ10xYVA returns a negative Sce error code

The sibling for open file descriptors is fchmod (posix_fchmod n01yNbQO5W4, sceKernelFchmod UtszJWHrDcA).

The behavior is described from the name and from shadPS4.

What a game uses it for: games rarely need it. Plausible uses, inferred from how chmod is normally used and not from official sources:

  • making a file created in save data or /data writable or readable before reopening it
  • fixing permissions on a downloaded or extracted file (patches, cache, DLC)
  • middleware or engine file-system layers that call chmod as part of a generic "create file" routine

In most titles a failure of this call is harmless.

Suggested implementation: ShadPS4 does not use a stub here. It has a full implementation in file_system.cpp.

Wrapper:

s32 PS4_SYSV_ABI sceKernelChmod(const char* path, u32 mode) {
    s32 result = posix_chmod(path, mode);
    if (result < 0) {
        LOG_ERROR(Kernel_Fs, "path = {}, mode = {:o}, error = {}", path ? path : "(null)", mode,
                  *__Error());
        return ErrnoToSceKernelError(*__Error());
    }
    return result;
}

It calls posix_chmod, and on failure logs the problem and converts the errno value to a Sce kernel error.

Core (posix_chmod) checks, in order:

Condition errno
path == nullptr POSIX_EFAULT
path longer than 255 characters POSIX_ENAMETOOLONG
guest path does not exist in the mount table POSIX_ENOENT
the mount is read-only POSIX_EROFS
guest path has no host path POSIX_ENOENT
host call fails native error converted by NativeToPosixErrno

On success it applies the permissions on the host file:

fs::permissions(host_path, static_cast<fs::perms>(mode & 07777), ec);

Only the lower 12 bits of mode are used (rwx for user, group, other, plus setuid, setgid and sticky).

Sources:

-- PPSA01521: Horizon Forbidden West

KytyPS5-2026-10-28-6c01401

Unresolved import stub called: fgIsQ10xYVA[libkernel_v1][libkernel_v1.1][Func]

Full log: Reference error (with log): #847

“Horizon: Forbidden West” also refers to the same feature.

**@⁠Ekt0re** on GitHub · 2026-10-28 10:01 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1960#issuecomment-6466042034) · edited 2026-10-31 16:57 UTC -- PPSA25256: Carmen Sandiego KytyPS5-2026-10-27-ffc8137 (0.3.0) ``` Unresolved import stub called [0..2]: patch_vaddr=0x0000000905e642e0 jmprela_index=53 symbol=fgIsQ10xYVA[libkernel_v1][libkernel_v1.1][Func] type=Func bind=Global program=.../eboot.bin ``` Full log: Reference error (with log): https://git.gtahub.st/github/KytyPS5--KytyPS5/issues/1953 **Notes** Game status: In game The missing function `fgIsQ10xYVA` (libkernel, `libkernel_v1` / `libkernel_v1.1`, global function export) maps in shadPS4 to `sceKernelChmod()`, registered as `LIB_FUNCTION("fgIsQ10xYVA", "libkernel", ...)`. **What it does:** it changes the permission bits of a file or directory, like the POSIX `chmod(path, mode)` call. ```cpp s32 sceKernelChmod(const char* path, u32 mode); ``` - `path`: guest path of the file or directory (e.g. under `/data` or `/app0`). - `mode`: permission bits in octal form (e.g. `0666`, `0777`). - Returns `0` on success, a negative Sce kernel error code on failure. It is the Sony-style wrapper around the POSIX-style call. The two differ only in how errors are returned: | Variant | NID | Error reporting | |---|---|---| | `posix_chmod` | `z0dtnPxYgtg` | returns `-1` and sets `errno` | | `sceKernelChmod` | `fgIsQ10xYVA` | returns a negative Sce error code | The sibling for open file descriptors is `fchmod` (`posix_fchmod` `n01yNbQO5W4`, `sceKernelFchmod` `UtszJWHrDcA`). The behavior is described from the name and from shadPS4. **What a game uses it for:** games rarely need it. Plausible uses, inferred from how `chmod` is normally used and not from official sources: - making a file created in save data or `/data` writable or readable before reopening it - fixing permissions on a downloaded or extracted file (patches, cache, DLC) - middleware or engine file-system layers that call `chmod` as part of a generic "create file" routine In most titles a failure of this call is harmless. **Suggested implementation:** ShadPS4 does not use a stub here. It has a full implementation in `file_system.cpp`. Wrapper: ```cpp s32 PS4_SYSV_ABI sceKernelChmod(const char* path, u32 mode) { s32 result = posix_chmod(path, mode); if (result < 0) { LOG_ERROR(Kernel_Fs, "path = {}, mode = {:o}, error = {}", path ? path : "(null)", mode, *__Error()); return ErrnoToSceKernelError(*__Error()); } return result; } ``` It calls `posix_chmod`, and on failure logs the problem and converts the `errno` value to a Sce kernel error. Core (`posix_chmod`) checks, in order: | Condition | errno | |---|---| | `path == nullptr` | `POSIX_EFAULT` | | path longer than 255 characters | `POSIX_ENAMETOOLONG` | | guest path does not exist in the mount table | `POSIX_ENOENT` | | the mount is read-only | `POSIX_EROFS` | | guest path has no host path | `POSIX_ENOENT` | | host call fails | native error converted by `NativeToPosixErrno` | On success it applies the permissions on the host file: ```cpp fs::permissions(host_path, static_cast<fs::perms>(mode & 07777), ec); ``` Only the lower 12 bits of `mode` are used (rwx for user, group, other, plus setuid, setgid and sticky). **Sources:** - shadPS4, `src/core/libraries/kernel/file_system.cpp` (`posix_chmod`, `sceKernelChmod`, and the `LIB_FUNCTION` registrations near the end of the file): <https://github.com/shadps4-emu/shadPS4/blob/main/src/core/libraries/kernel/file_system.cpp> - shadPS4 repository: <https://github.com/shadps4-emu/shadPS4> -- PPSA01521: Horizon Forbidden West KytyPS5-2026-10-28-6c01401 ``` Unresolved import stub called: fgIsQ10xYVA[libkernel_v1][libkernel_v1.1][Func] ``` Full log: Reference error (with log): https://git.gtahub.st/github/KytyPS5--KytyPS5/issues/847 “Horizon: Forbidden West” also refers to the same feature.
Author
Owner

@⁠Ekt0re on GitHub · 2026-10-28 10:15 UTC · original · edited 2026-10-31 18:13 UTC

-- PPSA22408: HOT WHEELS™ Infinite Rush

KytyPS5-2026-10-27-ffc8137 (0.3.0)

Stubbed: ... RCCY01Xd+58[Net_v1][Net_v1.1][Func], Func, Global
Unresolved import stub called [0]: patch_vaddr=0x000000090b1c3da8 jmprela_index=308 symbol=RCCY01Xd+58[Net_v1][Net_v1.1][Func] type=Func bind=Global program=.../eboot.bin

Full log: Reference error (with log): #1954

Notes

Game status: Logo

The missing function RCCY01Xd+58 (libSceNet, Net_v1 / Net_v1.1, global function export) maps in shadPS4 to sceNetResolverStartNtoaMultipleRecords(), registered as LIB_FUNCTION("RCCY01Xd+58", "libSceNet", 1, "libSceNet", ...).

What it does: it performs a DNS "name to address" lookup and returns all the IPv4 records found for a hostname, instead of a single address like sceNetResolverStartNtoa.

s32 sceNetResolverStartNtoaMultipleRecords(
    OrbisNetId rid,              // resolver id from sceNetResolverCreate
    const char* hostname,
    OrbisNetResolverInfo* info,  // output: list of resolved addresses
    s32 timeout, s32 retry, s32 flags);

Relevant flags:

  • ORBIS_NET_RESOLVER_ASYNC: asynchronous lookup.
  • ORBIS_NET_RESOLVER_START_NTOA_DISABLE_IPADDRESS: do not treat a literal IP as a hostname to resolve.

It returns 0 on success and an error code otherwise. The meaning is inferred from the function name and from shadPS4.

Suggested implementation: shadPS4 does not use a stub here. It has a full implementation split between net.cpp (the export) and net_resolver.cpp / net_resolver.h (the resolver logic).

Export and registration (net.cpp):

LIB_FUNCTION("RCCY01Xd+58", "libSceNet", 1, "libSceNet",
             sceNetResolverStartNtoaMultipleRecords);

s32 PS4_SYSV_ABI sceNetResolverStartNtoaMultipleRecords(OrbisNetId rid, const char* hostname,
                                                        OrbisNetResolverInfo* info, s32 timeout,
                                                        s32 retry, s32 flags) {
    LOG_INFO(Lib_Net, "rid = {}, hostname = {}, timeout = {}, retry = {}, flags = {:#x}", rid,
             hostname != nullptr ? hostname : "", timeout, retry, flags);
    return ResolverReturn(
        ResolverStartNtoa(rid, hostname, {nullptr, info}, (flags & ORBIS_NET_RESOLVER_ASYNC) != 0,
                          (flags & ORBIS_NET_RESOLVER_START_NTOA_DISABLE_IPADDRESS) != 0));
}
  • timeout and retry are only logged. They are not forwarded to the helper.
  • The helper receives {nullptr, info}: the single-address output is null and the record-list output is set.

Internal helper (ResolverStartNtoa(id, hostname, output, async, disable_ipaddress)), where the real work happens.

Step 1, argument validation (in this order):

Check Error
resolver id not found ORBIS_NET_ERROR_EBADF
hostname == nullptr, or both outputs null ORBIS_NET_ERROR_EINVAL
hostname length is 0 or above ORBIS_NET_RESOLVER_HOSTNAME_LEN_MAX ORBIS_NET_ERROR_EINVAL

Step 2, RunLookup (shared with the reverse lookup):

  • Resolver already running a lookup: ORBIS_NET_ERROR_RESOLVER_EBUSY.
  • A "preserved abort" was queued earlier for this kind of lookup (set by AbortResolver with a preservation flag): the lookup fails with ORBIS_NET_ERROR_EINTR and the flag is consumed.
  • Synchronous: the work runs on the calling thread, then the result is delivered and the status is stored in the resolver.
  • Asynchronous: the resolver is marked running and a detached thread does the work. When done, it writes the result only if the resolver was not destroyed and the lookup was not aborted (a counter detects stale lookups), then signals completion with SignalExternal(id). The call itself returns 0 immediately.

Step 3, Lookup(hostname, allow_literal, &addrs), in order:

  1. A trailing . is stripped.
  2. Hostnames starting with localhost resolve to 127.0.0.1.
  3. If literal IPs are allowed (flag DISABLE_IPADDRESS not set) and the string parses as an IPv4 address, that address is returned.
  4. If the emulator's online check says offline: ORBIS_NET_ERROR_RESOLVER_ENODNS.
  5. Otherwise a real getaddrinfo runs with AF_INET and SOCK_STREAM. Results are filtered to IPv4, duplicates are dropped and the list is capped at 10 records.
  6. Empty result: ORBIS_NET_ERROR_RESOLVER_ENORECORD.

getaddrinfo errors are translated:

Host error Orbis error
EAI_NONAME (and EAI_NODATA where distinct) ORBIS_NET_ERROR_RESOLVER_ENOHOST
EAI_AGAIN ORBIS_NET_ERROR_RESOLVER_ETIMEDOUT
EAI_FAIL ORBIS_NET_ERROR_RESOLVER_ESERVERFAILURE
anything else ORBIS_NET_ERROR_RESOLVER_EINTERNAL

Step 4, Deliver fills the guest structure on success. For this export (info set):

  • The whole OrbisNetResolverInfo is zeroed with memset.
  • For each address i: addrs[i].u.addr.inaddr_addr = address and addrs[i].af = ORBIS_NET_AF_INET.
  • records and recordsv4 are both set to the number of addresses.

When addr is set instead, as in sceNetResolverStartNtoa, only the first address is written.

Related functions in the same files:

  • CreateResolver / DestroyResolver: resolvers live in a global map; ids come from a shared external-id allocator. Destroying a resolver marks it so a running async lookup cannot write to guest memory afterwards.
  • AbortResolver: aborts a running lookup (status EINTR) or queues a preserved abort.
  • ResolverGetError: returns the status of the last lookup.
  • ResolverStartAton: reverse lookup (getnameinfo), same machinery.
  • sceNetResolverStartNtoaMultipleRecordsEx (in net.cpp): same as this export, but it validates the flags (EINVAL on unknown bits) and treats AAAA-only requests as "no record", since only IPv4 is looked up.

Sources:

The ShardPS4 implementation provides clarification on how the instruction works. However, it must be adapted to the KYTYPS5 implementation, which may differ.

**@⁠Ekt0re** on GitHub · 2026-10-28 10:15 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1960#issuecomment-6466319946) · edited 2026-10-31 18:13 UTC -- PPSA22408: HOT WHEELS™ Infinite Rush KytyPS5-2026-10-27-ffc8137 (0.3.0) ``` Stubbed: ... RCCY01Xd+58[Net_v1][Net_v1.1][Func], Func, Global Unresolved import stub called [0]: patch_vaddr=0x000000090b1c3da8 jmprela_index=308 symbol=RCCY01Xd+58[Net_v1][Net_v1.1][Func] type=Func bind=Global program=.../eboot.bin ``` Full log: Reference error (with log): https://git.gtahub.st/github/KytyPS5--KytyPS5/issues/1954 **Notes** Game status: Logo The missing function `RCCY01Xd+58` (libSceNet, `Net_v1` / `Net_v1.1`, global function export) maps in shadPS4 to `sceNetResolverStartNtoaMultipleRecords()`, registered as `LIB_FUNCTION("RCCY01Xd+58", "libSceNet", 1, "libSceNet", ...)`. **What it does:** it performs a DNS "name to address" lookup and returns all the IPv4 records found for a hostname, instead of a single address like `sceNetResolverStartNtoa`. ```cpp s32 sceNetResolverStartNtoaMultipleRecords( OrbisNetId rid, // resolver id from sceNetResolverCreate const char* hostname, OrbisNetResolverInfo* info, // output: list of resolved addresses s32 timeout, s32 retry, s32 flags); ``` Relevant flags: - `ORBIS_NET_RESOLVER_ASYNC`: asynchronous lookup. - `ORBIS_NET_RESOLVER_START_NTOA_DISABLE_IPADDRESS`: do not treat a literal IP as a hostname to resolve. It returns `0` on success and an error code otherwise. The meaning is inferred from the function name and from shadPS4. **Suggested implementation:** shadPS4 does not use a stub here. It has a full implementation split between `net.cpp` (the export) and `net_resolver.cpp` / `net_resolver.h` (the resolver logic). Export and registration (`net.cpp`): ```cpp LIB_FUNCTION("RCCY01Xd+58", "libSceNet", 1, "libSceNet", sceNetResolverStartNtoaMultipleRecords); s32 PS4_SYSV_ABI sceNetResolverStartNtoaMultipleRecords(OrbisNetId rid, const char* hostname, OrbisNetResolverInfo* info, s32 timeout, s32 retry, s32 flags) { LOG_INFO(Lib_Net, "rid = {}, hostname = {}, timeout = {}, retry = {}, flags = {:#x}", rid, hostname != nullptr ? hostname : "", timeout, retry, flags); return ResolverReturn( ResolverStartNtoa(rid, hostname, {nullptr, info}, (flags & ORBIS_NET_RESOLVER_ASYNC) != 0, (flags & ORBIS_NET_RESOLVER_START_NTOA_DISABLE_IPADDRESS) != 0)); } ``` - `timeout` and `retry` are only logged. They are not forwarded to the helper. - The helper receives `{nullptr, info}`: the single-address output is null and the record-list output is set. Internal helper (`ResolverStartNtoa(id, hostname, output, async, disable_ipaddress)`), where the real work happens. Step 1, argument validation (in this order): | Check | Error | |---|---| | resolver `id` not found | `ORBIS_NET_ERROR_EBADF` | | `hostname == nullptr`, or both outputs null | `ORBIS_NET_ERROR_EINVAL` | | hostname length is 0 or above `ORBIS_NET_RESOLVER_HOSTNAME_LEN_MAX` | `ORBIS_NET_ERROR_EINVAL` | Step 2, `RunLookup` (shared with the reverse lookup): - Resolver already running a lookup: `ORBIS_NET_ERROR_RESOLVER_EBUSY`. - A "preserved abort" was queued earlier for this kind of lookup (set by `AbortResolver` with a preservation flag): the lookup fails with `ORBIS_NET_ERROR_EINTR` and the flag is consumed. - Synchronous: the work runs on the calling thread, then the result is delivered and the status is stored in the resolver. - Asynchronous: the resolver is marked running and a detached thread does the work. When done, it writes the result only if the resolver was not destroyed and the lookup was not aborted (a counter detects stale lookups), then signals completion with `SignalExternal(id)`. The call itself returns `0` immediately. Step 3, `Lookup(hostname, allow_literal, &addrs)`, in order: 1. A trailing `.` is stripped. 2. Hostnames starting with `localhost` resolve to `127.0.0.1`. 3. If literal IPs are allowed (flag `DISABLE_IPADDRESS` not set) and the string parses as an IPv4 address, that address is returned. 4. If the emulator's online check says offline: `ORBIS_NET_ERROR_RESOLVER_ENODNS`. 5. Otherwise a real `getaddrinfo` runs with `AF_INET` and `SOCK_STREAM`. Results are filtered to IPv4, duplicates are dropped and the list is capped at 10 records. 6. Empty result: `ORBIS_NET_ERROR_RESOLVER_ENORECORD`. `getaddrinfo` errors are translated: | Host error | Orbis error | |---|---| | `EAI_NONAME` (and `EAI_NODATA` where distinct) | `ORBIS_NET_ERROR_RESOLVER_ENOHOST` | | `EAI_AGAIN` | `ORBIS_NET_ERROR_RESOLVER_ETIMEDOUT` | | `EAI_FAIL` | `ORBIS_NET_ERROR_RESOLVER_ESERVERFAILURE` | | anything else | `ORBIS_NET_ERROR_RESOLVER_EINTERNAL` | Step 4, `Deliver` fills the guest structure on success. For this export (`info` set): - The whole `OrbisNetResolverInfo` is zeroed with `memset`. - For each address `i`: `addrs[i].u.addr.inaddr_addr = address` and `addrs[i].af = ORBIS_NET_AF_INET`. - `records` and `recordsv4` are both set to the number of addresses. When `addr` is set instead, as in `sceNetResolverStartNtoa`, only the first address is written. **Related functions in the same files:** - `CreateResolver` / `DestroyResolver`: resolvers live in a global map; ids come from a shared external-id allocator. Destroying a resolver marks it so a running async lookup cannot write to guest memory afterwards. - `AbortResolver`: aborts a running lookup (status `EINTR`) or queues a preserved abort. - `ResolverGetError`: returns the status of the last lookup. - `ResolverStartAton`: reverse lookup (`getnameinfo`), same machinery. - `sceNetResolverStartNtoaMultipleRecordsEx` (in `net.cpp`): same as this export, but it validates the flags (`EINVAL` on unknown bits) and treats AAAA-only requests as "no record", since only IPv4 is looked up. **Sources:** - shadPS4, `src/core/libraries/net/net.cpp`: <https://github.com/shadps4-emu/shadPS4/blob/main/src/core/libraries/net/net.cpp> - shadPS4, `src/core/libraries/net/net_resolver.cpp`: <https://github.com/shadps4-emu/shadPS4/blob/main/src/core/libraries/net/net_resolver.cpp> - shadPS4, `src/core/libraries/net/net_resolver.h`: <https://github.com/shadps4-emu/shadPS4/blob/main/src/core/libraries/net/net_resolver.h> - shadPS4 repository: <https://github.com/shadps4-emu/shadPS4> The ShardPS4 implementation provides clarification on how the instruction works. However, it must be adapted to the KYTYPS5 implementation, which may differ.
Author
Owner

@⁠Ekt0re on GitHub · 2026-10-28 10:43 UTC · original · edited 2026-10-31 20:54 UTC

-- PPSA23126: Palworld

KytyPS5-2026-10-27-ffc8137 (0.3.0)

Stubbed: ... m5CYKX20wfg[SystemService_v1][SystemService_v1.1][Func]
Stubbed: ... uaieF+glFPs[SystemService_v1][SystemService_v1.1][Func]
Stubbed: ... VgYczPGB5ss[NpManager_v1][NpManager_v1.1][Func]
Stubbed: ... KJdPcOGmK58[NpWebApi2_v1][NpWebApi2_v1.1][Func]
Stubbed: ... hOnIlcGrO6g[NpWebApi2_v1][NpWebApi2_v1.1][Func]

Full log: Reference error (with log): #1955

Notes

Game status: In game

Names were resolved from the shadPS4 repository (NID tables and sources). Behavior is described from the names, the signatures and the shadPS4 code where it was read. There is no official Sony documentation, so everything marked "inferred" is an educated reading, not a confirmed fact.

NID Library Name shadPS4 status
m5CYKX20wfg SystemService sceSystemServiceInitializePlayerDialogParam name only (no implementation found)
uaieF+glFPs SystemService sceSystemServiceLaunchPlayerDialog name only (no implementation found)
VgYczPGB5ss NpManager sceNpGetUserIdByAccountId implemented (np_manager.cpp)
KJdPcOGmK58 NpWebApi2 sceNpWebApi2PushEventDeleteFilter implemented (np_web_api2.cpp, np_web_api2_context.cpp)
hOnIlcGrO6g NpWebApi2 sceNpWebApi2PushEventUnregisterCallback implemented (np_web_api2.cpp, np_web_api2_context.cpp)

1. sceSystemServiceInitializePlayerDialogParam (m5CYKX20wfg) and sceSystemServiceLaunchPlayerDialog (uaieF+glFPs)

What they do (inferred). They work as a pair around a system "player dialog": the console-level UI that shows information about another player (for example a profile card with actions such as view profile, add friend, send a message).

  • InitializePlayerDialogParam fills a parameter structure with default values, as many Sony ...InitializeParam functions do.
  • LaunchPlayerDialog opens the system dialog using that structure, typically with the target player's account or online id.

What a game uses them for. Letting the player tap another user's name (in a lobby, friends list, scoreboard) and open the console's own profile UI instead of a custom one.

shadPS4. The names appear only in the generated name table (src/core/aerolib/aerolib.inl) as stubs. No implementation was found in the libraries sources, and the structure layout is not known from there.

2. sceNpGetUserIdByAccountId (VgYczPGB5ss)

What it does. It looks up the local user id that corresponds to a given NP account id.

s32 sceNpGetUserIdByAccountId(u64 account_id, OrbisUserServiceUserId* user_id);
  • account_id: NP account id to resolve.
  • user_id: output, the local user id.
  • Returns 0 on success, an NP error code otherwise. On every error the output is left untouched.

shadPS4 implementation (src/core/libraries/np/np_manager.cpp). It is a full implementation, not a stub:

s32 PS4_SYSV_ABI
sceNpGetUserIdByAccountId(u64 account_id, Libraries::UserService::OrbisUserServiceUserId* user_id) {
    if (account_id == 0 || user_id == nullptr) {
        LOG_ERROR(Lib_NpManager, "invalid argument: account_id={}", account_id);
        return ORBIS_NP_ERROR_INVALID_ARGUMENT;
    }
    if (!g_shadnet_enabled)
        return ORBIS_NP_ERROR_SIGNED_OUT;

    const s32 found = Libraries::Np::NpHandler::GetInstance().GetUserIdByAccountId(account_id);
    if (found == -1)
        return ORBIS_NP_ERROR_SIGNED_OUT;

    // Verify the resolved user_id is actually a logged-in local user
    const User* u = UserManagement.GetUserByID(found);
    if (!u || !u->logged_in)
        return ORBIS_NP_ERROR_USER_NOT_FOUND;

    *user_id = found;
    LOG_DEBUG(Lib_NpManager, "account_id={} returns user_id={}", account_id, *user_id);
    return ORBIS_OK;
}

Checks, in order:

Condition Result
account_id == 0 or user_id == nullptr ORBIS_NP_ERROR_INVALID_ARGUMENT (0x80550003)
shadNet disabled (g_shadnet_enabled == false) ORBIS_NP_ERROR_SIGNED_OUT (0x80550006)
NpHandler::GetUserIdByAccountId(account_id) returns -1 ORBIS_NP_ERROR_SIGNED_OUT (0x80550006)
resolved user does not exist or is not logged_in ORBIS_NP_ERROR_USER_NOT_FOUND (0x80550007)
otherwise writes *user_id, returns ORBIS_OK

g_shadnet_enabled is read once, in RegisterLib, from EmulatorSettings.IsShadNetEnabled(). Registration: LIB_FUNCTION("VgYczPGB5ss", "libSceNpManager", 1, "libSceNpManager", sceNpGetUserIdByAccountId).

Related calls in the same file with the same structure: sceNpGetUserIdByOnlineId (F6E4ycq9Dbg) resolves from an online id instead, and sceNpGetAccountIdA (rbknaUjpqWo) does the reverse mapping (user id to account id).

Suggested implementation. Without a PSN/shadNet backend the whole behavior reduces to the first two rows: validate the arguments, then return ORBIS_NP_ERROR_SIGNED_OUT and leave *user_id unchanged. That is what shadPS4 does when shadNet is disabled. A real lookup needs a table from account id to logged-in local user.

3. sceNpWebApi2PushEventDeleteFilter (KJdPcOGmK58)

What it does. It deletes a push event filter that was created earlier with sceNpWebApi2PushEventCreateFilter. Push event filters belong to a library context.

s32 sceNpWebApi2PushEventDeleteFilter(s32 lib_ctx_id, s32 filter_id);

shadPS4 implementation. The export (np_web_api2.cpp) only logs and forwards, with no argument checks:

s32 PS4_SYSV_ABI sceNpWebApi2PushEventDeleteFilter(s32 lib_ctx_id, s32 filter_id) {
    LOG_INFO(Lib_NpWebApi2, "called, lib_ctx_id = {:#x}, filter_id = {:#x}", lib_ctx_id, filter_id);
    return deletePushEventFilter(lib_ctx_id, filter_id);
}

The work is in np_web_api2_context.cpp:

s32 deletePushEventFilter(s32 lib_ctx_id, s32 filter_id) {
    LibraryContext* lib_ctx = getLibraryContext(lib_ctx_id);
    if (!lib_ctx) {
        LOG_ERROR(Lib_NpWebApi2, "No library context with id {:#x}", lib_ctx_id);
        return ORBIS_NP_WEBAPI2_ERROR_LIB_CONTEXT_NOT_FOUND;
    }

    PushEventFilter* filter = lib_ctx->GetPushEventFilter(filter_id);
    if (!filter) {
        LOG_ERROR(Lib_NpWebApi2, "No filter with id {:#x}", filter_id);
        lib_ctx->RemoveUser();
        return ORBIS_NP_WEBAPI2_ERROR_PUSH_EVENT_FILTER_NOT_FOUND;
    }

    lib_ctx->DeletePushEventFilter(filter);
    lib_ctx->RemoveUser();
    return ORBIS_OK;
}
Step Result
getLibraryContext(lib_ctx_id): unknown or already deleted context ORBIS_NP_WEBAPI2_ERROR_LIB_CONTEXT_NOT_FOUND (0x80553404)
lib_ctx->GetPushEventFilter(filter_id) returns null ORBIS_NP_WEBAPI2_ERROR_PUSH_EVENT_FILTER_NOT_FOUND (0x8055340b)
otherwise lib_ctx->DeletePushEventFilter(filter), returns ORBIS_OK

getLibraryContext takes a user reference on the context (AddUser), so every exit path calls RemoveUser().

Filter lifecycle (LibraryContext::CreatePushEventFilter, same file):

  • The filter is created against a push event handle. An unknown handle returns ORBIS_NP_WEBAPI2_ERROR_HANDLE_NOT_FOUND (0x8055340d).
  • Ids come from a global counter that wraps back to 1 before 0xf0000000. The id is the return value of sceNpWebApi2PushEventCreateFilter.
  • Filters are stored in the library context (push_event_filters). terminateLibraryContext removes all of them with DeleteAllPushEventFilters().
  • PushEventFilter::Initialize (np_web_api2_push_event.cpp) rejects a deleted handle (HANDLE_NOT_FOUND), a timed out handle (ORBIS_NP_WEBAPI2_ERROR_TIMEOUT, 0x8055341b) and an aborted handle (ORBIS_NP_WEBAPI2_ERROR_ABORTED, 0x80553409), then copies the filter parameters and their extd_data_key arrays.

Unlike abortPushEventHandle and setHandleTimeout, deletePushEventFilter does not call lib_ctx->Lock() itself. Whether LibraryContext::DeletePushEventFilter locks internally was not visible in the files reviewed.

4. sceNpWebApi2PushEventUnregisterCallback (hOnIlcGrO6g)

What it does. It removes a push event callback that was registered earlier with sceNpWebApi2PushEventRegisterCallback. Callbacks belong to a user context.

s32 sceNpWebApi2PushEventUnregisterCallback(s32 user_ctx_id, s32 callback_id);

shadPS4 implementation. The export only logs and forwards:

s32 PS4_SYSV_ABI sceNpWebApi2PushEventUnregisterCallback(s32 user_ctx_id, s32 callback_id) {
    LOG_INFO(Lib_NpWebApi2, "called, user_ctx_id = {:#x}, callback_id = {:#x}", user_ctx_id,
             callback_id);
    return unregisterPushEventCallback(user_ctx_id, callback_id);
}

Internal function (np_web_api2_context.cpp). The library context id is the upper 16 bits of user_ctx_id:

s32 unregisterPushEventCallback(s32 user_ctx_id, s32 callback_id) {
    LibraryContext* lib_ctx = getLibraryContext(user_ctx_id >> 0x10);
    if (!lib_ctx) {
        LOG_ERROR(Lib_NpWebApi2, "No library context for user context id {:#x}", user_ctx_id);
        return ORBIS_NP_WEBAPI2_ERROR_LIB_CONTEXT_NOT_FOUND;
    }

    UserContext* user_ctx = lib_ctx->GetUserContext(user_ctx_id);
    if (!user_ctx) {
        LOG_ERROR(Lib_NpWebApi2, "No user context with id {:#x}", user_ctx_id);
        lib_ctx->RemoveUser();
        return ORBIS_NP_WEBAPI2_ERROR_USER_CONTEXT_NOT_FOUND;
    }

    s32 result = user_ctx->DeletePushEventCallback(callback_id);
    user_ctx->RemoveUser();
    lib_ctx->RemoveUser();
    return result;
}

And the actual removal, UserContext::DeletePushEventCallback:

s32 UserContext::DeletePushEventCallback(s32 callback_id) {
    this->Lock();
    if (!this->push_event_callbacks.contains(callback_id)) {
        this->Unlock();
        LOG_ERROR(Lib_NpWebApi2, "No push event callback with id {:#x}", callback_id);
        return ORBIS_NP_WEBAPI2_ERROR_PUSH_EVENT_CALLBACK_NOT_FOUND;
    }

    PushEventCallback* callback = this->push_event_callbacks[callback_id];
    while (callback->is_busy) {
        this->Unlock();
        Libraries::Kernel::sceKernelUsleep(100000);
        this->Lock();
    }

    delete callback;
    this->push_event_callbacks.erase(callback_id);
    this->Unlock();
    return ORBIS_OK;
}
Step Result
library context (user_ctx_id >> 0x10) not found ORBIS_NP_WEBAPI2_ERROR_LIB_CONTEXT_NOT_FOUND (0x80553404)
lib_ctx->GetUserContext(user_ctx_id) returns null (also when the user context is marked deleted) ORBIS_NP_WEBAPI2_ERROR_USER_CONTEXT_NOT_FOUND (0x80553405)
callback_id not in the user context's callback map ORBIS_NP_WEBAPI2_ERROR_PUSH_EVENT_CALLBACK_NOT_FOUND (0x8055340c)
callback currently running (is_busy) waits, releasing the lock and sleeping 100 ms per iteration, until it finishes
otherwise deletes the callback, erases it from the map, returns ORBIS_OK

Registration counterpart (registerPushEventCallback / UserContext::CreatePushEventCallback):

  • Registration fails with PUSH_EVENT_FILTER_NOT_FOUND if filter_id does not exist in the library context, and the export itself returns INVALID_ARGUMENT for a null callback function.
  • The callback id is drawn from a global counter that wraps back to 1 before 0xf0000000. It is stored in the user context together with its filter_id, function pointer and user argument.
  • Deleting the user context (UserContext::Delete) also deletes all of its push event callbacks.

5. Are push events ever delivered in shadPS4?

Not at the time of reading. RegisterLib registers processPushEvents under the key "npwebapi2_push" with NpManager::RegisterNpCallback, and sceNpCheckCallback runs every registered hook. But the body of processPushEvents() is empty (its log line is commented out), so registered push event callbacks are never invoked. This means filters and callbacks are pure bookkeeping at the moment: creating, registering, unregistering and deleting them changes state and return codes, but nothing reaches the game.

For an emulator that does not deliver push events, a stub that returns ORBIS_OK for these two calls should be observably equivalent to shadPS4 for a game that registers and unregisters correctly. The two differences are the error codes for wrong ids and the missing wait for a running callback.

What was not verified

  • Official Sony documentation for any of these functions. Meanings come from names, signatures and the shadPS4 code.
  • The body of NpHandler::GetUserIdByAccountId (how an account id is mapped to a local user).
  • The bodies of LibraryContext::GetPushEventFilter and LibraryContext::DeletePushEventFilter, and the declarations in np_web_api2_internal.h / np_web_api2_context.h.
  • Behavior on a real console. All error codes are the PS4 values defined in shadPS4's np_error.h.

Sources

**@⁠Ekt0re** on GitHub · 2026-10-28 10:43 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1960#issuecomment-6466899338) · edited 2026-10-31 20:54 UTC -- PPSA23126: Palworld KytyPS5-2026-10-27-ffc8137 (0.3.0) ``` Stubbed: ... m5CYKX20wfg[SystemService_v1][SystemService_v1.1][Func] Stubbed: ... uaieF+glFPs[SystemService_v1][SystemService_v1.1][Func] Stubbed: ... VgYczPGB5ss[NpManager_v1][NpManager_v1.1][Func] Stubbed: ... KJdPcOGmK58[NpWebApi2_v1][NpWebApi2_v1.1][Func] Stubbed: ... hOnIlcGrO6g[NpWebApi2_v1][NpWebApi2_v1.1][Func] ``` Full log: Reference error (with log): https://git.gtahub.st/github/KytyPS5--KytyPS5/issues/1955 **Notes** Game status: In game Names were resolved from the shadPS4 repository (NID tables and sources). Behavior is described from the names, the signatures and the shadPS4 code where it was read. There is no official Sony documentation, so everything marked "inferred" is an educated reading, not a confirmed fact. | NID | Library | Name | shadPS4 status | |---|---|---|---| | `m5CYKX20wfg` | SystemService | `sceSystemServiceInitializePlayerDialogParam` | name only (no implementation found) | | `uaieF+glFPs` | SystemService | `sceSystemServiceLaunchPlayerDialog` | name only (no implementation found) | | `VgYczPGB5ss` | NpManager | `sceNpGetUserIdByAccountId` | implemented (`np_manager.cpp`) | | `KJdPcOGmK58` | NpWebApi2 | `sceNpWebApi2PushEventDeleteFilter` | implemented (`np_web_api2.cpp`, `np_web_api2_context.cpp`) | | `hOnIlcGrO6g` | NpWebApi2 | `sceNpWebApi2PushEventUnregisterCallback` | implemented (`np_web_api2.cpp`, `np_web_api2_context.cpp`) | ## 1. `sceSystemServiceInitializePlayerDialogParam` (`m5CYKX20wfg`) and `sceSystemServiceLaunchPlayerDialog` (`uaieF+glFPs`) **What they do (inferred).** They work as a pair around a system "player dialog": the console-level UI that shows information about another player (for example a profile card with actions such as view profile, add friend, send a message). - `InitializePlayerDialogParam` fills a parameter structure with default values, as many Sony `...InitializeParam` functions do. - `LaunchPlayerDialog` opens the system dialog using that structure, typically with the target player's account or online id. **What a game uses them for.** Letting the player tap another user's name (in a lobby, friends list, scoreboard) and open the console's own profile UI instead of a custom one. **shadPS4.** The names appear only in the generated name table (`src/core/aerolib/aerolib.inl`) as stubs. No implementation was found in the libraries sources, and the structure layout is not known from there. ## 2. `sceNpGetUserIdByAccountId` (`VgYczPGB5ss`) **What it does.** It looks up the local user id that corresponds to a given NP account id. ```cpp s32 sceNpGetUserIdByAccountId(u64 account_id, OrbisUserServiceUserId* user_id); ``` - `account_id`: NP account id to resolve. - `user_id`: output, the local user id. - Returns `0` on success, an NP error code otherwise. On every error the output is left untouched. **shadPS4 implementation** (`src/core/libraries/np/np_manager.cpp`). It is a full implementation, not a stub: ```cpp s32 PS4_SYSV_ABI sceNpGetUserIdByAccountId(u64 account_id, Libraries::UserService::OrbisUserServiceUserId* user_id) { if (account_id == 0 || user_id == nullptr) { LOG_ERROR(Lib_NpManager, "invalid argument: account_id={}", account_id); return ORBIS_NP_ERROR_INVALID_ARGUMENT; } if (!g_shadnet_enabled) return ORBIS_NP_ERROR_SIGNED_OUT; const s32 found = Libraries::Np::NpHandler::GetInstance().GetUserIdByAccountId(account_id); if (found == -1) return ORBIS_NP_ERROR_SIGNED_OUT; // Verify the resolved user_id is actually a logged-in local user const User* u = UserManagement.GetUserByID(found); if (!u || !u->logged_in) return ORBIS_NP_ERROR_USER_NOT_FOUND; *user_id = found; LOG_DEBUG(Lib_NpManager, "account_id={} returns user_id={}", account_id, *user_id); return ORBIS_OK; } ``` Checks, in order: | Condition | Result | |---|---| | `account_id == 0` or `user_id == nullptr` | `ORBIS_NP_ERROR_INVALID_ARGUMENT` (`0x80550003`) | | shadNet disabled (`g_shadnet_enabled == false`) | `ORBIS_NP_ERROR_SIGNED_OUT` (`0x80550006`) | | `NpHandler::GetUserIdByAccountId(account_id)` returns `-1` | `ORBIS_NP_ERROR_SIGNED_OUT` (`0x80550006`) | | resolved user does not exist or is not `logged_in` | `ORBIS_NP_ERROR_USER_NOT_FOUND` (`0x80550007`) | | otherwise | writes `*user_id`, returns `ORBIS_OK` | `g_shadnet_enabled` is read once, in `RegisterLib`, from `EmulatorSettings.IsShadNetEnabled()`. Registration: `LIB_FUNCTION("VgYczPGB5ss", "libSceNpManager", 1, "libSceNpManager", sceNpGetUserIdByAccountId)`. Related calls in the same file with the same structure: `sceNpGetUserIdByOnlineId` (`F6E4ycq9Dbg`) resolves from an online id instead, and `sceNpGetAccountIdA` (`rbknaUjpqWo`) does the reverse mapping (user id to account id). **Suggested implementation.** Without a PSN/shadNet backend the whole behavior reduces to the first two rows: validate the arguments, then return `ORBIS_NP_ERROR_SIGNED_OUT` and leave `*user_id` unchanged. That is what shadPS4 does when shadNet is disabled. A real lookup needs a table from account id to logged-in local user. ## 3. `sceNpWebApi2PushEventDeleteFilter` (`KJdPcOGmK58`) **What it does.** It deletes a push event filter that was created earlier with `sceNpWebApi2PushEventCreateFilter`. Push event filters belong to a library context. ```cpp s32 sceNpWebApi2PushEventDeleteFilter(s32 lib_ctx_id, s32 filter_id); ``` **shadPS4 implementation.** The export (`np_web_api2.cpp`) only logs and forwards, with no argument checks: ```cpp s32 PS4_SYSV_ABI sceNpWebApi2PushEventDeleteFilter(s32 lib_ctx_id, s32 filter_id) { LOG_INFO(Lib_NpWebApi2, "called, lib_ctx_id = {:#x}, filter_id = {:#x}", lib_ctx_id, filter_id); return deletePushEventFilter(lib_ctx_id, filter_id); } ``` The work is in `np_web_api2_context.cpp`: ```cpp s32 deletePushEventFilter(s32 lib_ctx_id, s32 filter_id) { LibraryContext* lib_ctx = getLibraryContext(lib_ctx_id); if (!lib_ctx) { LOG_ERROR(Lib_NpWebApi2, "No library context with id {:#x}", lib_ctx_id); return ORBIS_NP_WEBAPI2_ERROR_LIB_CONTEXT_NOT_FOUND; } PushEventFilter* filter = lib_ctx->GetPushEventFilter(filter_id); if (!filter) { LOG_ERROR(Lib_NpWebApi2, "No filter with id {:#x}", filter_id); lib_ctx->RemoveUser(); return ORBIS_NP_WEBAPI2_ERROR_PUSH_EVENT_FILTER_NOT_FOUND; } lib_ctx->DeletePushEventFilter(filter); lib_ctx->RemoveUser(); return ORBIS_OK; } ``` | Step | Result | |---|---| | `getLibraryContext(lib_ctx_id)`: unknown or already deleted context | `ORBIS_NP_WEBAPI2_ERROR_LIB_CONTEXT_NOT_FOUND` (`0x80553404`) | | `lib_ctx->GetPushEventFilter(filter_id)` returns null | `ORBIS_NP_WEBAPI2_ERROR_PUSH_EVENT_FILTER_NOT_FOUND` (`0x8055340b`) | | otherwise | `lib_ctx->DeletePushEventFilter(filter)`, returns `ORBIS_OK` | `getLibraryContext` takes a user reference on the context (`AddUser`), so every exit path calls `RemoveUser()`. **Filter lifecycle** (`LibraryContext::CreatePushEventFilter`, same file): - The filter is created against a push event handle. An unknown handle returns `ORBIS_NP_WEBAPI2_ERROR_HANDLE_NOT_FOUND` (`0x8055340d`). - Ids come from a global counter that wraps back to `1` before `0xf0000000`. The id is the return value of `sceNpWebApi2PushEventCreateFilter`. - Filters are stored in the library context (`push_event_filters`). `terminateLibraryContext` removes all of them with `DeleteAllPushEventFilters()`. - `PushEventFilter::Initialize` (`np_web_api2_push_event.cpp`) rejects a deleted handle (`HANDLE_NOT_FOUND`), a timed out handle (`ORBIS_NP_WEBAPI2_ERROR_TIMEOUT`, `0x8055341b`) and an aborted handle (`ORBIS_NP_WEBAPI2_ERROR_ABORTED`, `0x80553409`), then copies the filter parameters and their `extd_data_key` arrays. Unlike `abortPushEventHandle` and `setHandleTimeout`, `deletePushEventFilter` does not call `lib_ctx->Lock()` itself. Whether `LibraryContext::DeletePushEventFilter` locks internally was not visible in the files reviewed. ## 4. `sceNpWebApi2PushEventUnregisterCallback` (`hOnIlcGrO6g`) **What it does.** It removes a push event callback that was registered earlier with `sceNpWebApi2PushEventRegisterCallback`. Callbacks belong to a user context. ```cpp s32 sceNpWebApi2PushEventUnregisterCallback(s32 user_ctx_id, s32 callback_id); ``` **shadPS4 implementation.** The export only logs and forwards: ```cpp s32 PS4_SYSV_ABI sceNpWebApi2PushEventUnregisterCallback(s32 user_ctx_id, s32 callback_id) { LOG_INFO(Lib_NpWebApi2, "called, user_ctx_id = {:#x}, callback_id = {:#x}", user_ctx_id, callback_id); return unregisterPushEventCallback(user_ctx_id, callback_id); } ``` Internal function (`np_web_api2_context.cpp`). The library context id is the upper 16 bits of `user_ctx_id`: ```cpp s32 unregisterPushEventCallback(s32 user_ctx_id, s32 callback_id) { LibraryContext* lib_ctx = getLibraryContext(user_ctx_id >> 0x10); if (!lib_ctx) { LOG_ERROR(Lib_NpWebApi2, "No library context for user context id {:#x}", user_ctx_id); return ORBIS_NP_WEBAPI2_ERROR_LIB_CONTEXT_NOT_FOUND; } UserContext* user_ctx = lib_ctx->GetUserContext(user_ctx_id); if (!user_ctx) { LOG_ERROR(Lib_NpWebApi2, "No user context with id {:#x}", user_ctx_id); lib_ctx->RemoveUser(); return ORBIS_NP_WEBAPI2_ERROR_USER_CONTEXT_NOT_FOUND; } s32 result = user_ctx->DeletePushEventCallback(callback_id); user_ctx->RemoveUser(); lib_ctx->RemoveUser(); return result; } ``` And the actual removal, `UserContext::DeletePushEventCallback`: ```cpp s32 UserContext::DeletePushEventCallback(s32 callback_id) { this->Lock(); if (!this->push_event_callbacks.contains(callback_id)) { this->Unlock(); LOG_ERROR(Lib_NpWebApi2, "No push event callback with id {:#x}", callback_id); return ORBIS_NP_WEBAPI2_ERROR_PUSH_EVENT_CALLBACK_NOT_FOUND; } PushEventCallback* callback = this->push_event_callbacks[callback_id]; while (callback->is_busy) { this->Unlock(); Libraries::Kernel::sceKernelUsleep(100000); this->Lock(); } delete callback; this->push_event_callbacks.erase(callback_id); this->Unlock(); return ORBIS_OK; } ``` | Step | Result | |---|---| | library context (`user_ctx_id >> 0x10`) not found | `ORBIS_NP_WEBAPI2_ERROR_LIB_CONTEXT_NOT_FOUND` (`0x80553404`) | | `lib_ctx->GetUserContext(user_ctx_id)` returns null (also when the user context is marked deleted) | `ORBIS_NP_WEBAPI2_ERROR_USER_CONTEXT_NOT_FOUND` (`0x80553405`) | | `callback_id` not in the user context's callback map | `ORBIS_NP_WEBAPI2_ERROR_PUSH_EVENT_CALLBACK_NOT_FOUND` (`0x8055340c`) | | callback currently running (`is_busy`) | waits, releasing the lock and sleeping 100 ms per iteration, until it finishes | | otherwise | deletes the callback, erases it from the map, returns `ORBIS_OK` | **Registration counterpart** (`registerPushEventCallback` / `UserContext::CreatePushEventCallback`): - Registration fails with `PUSH_EVENT_FILTER_NOT_FOUND` if `filter_id` does not exist in the library context, and the export itself returns `INVALID_ARGUMENT` for a null callback function. - The callback id is drawn from a global counter that wraps back to `1` before `0xf0000000`. It is stored in the user context together with its `filter_id`, function pointer and user argument. - Deleting the user context (`UserContext::Delete`) also deletes all of its push event callbacks. ## 5. Are push events ever delivered in shadPS4? Not at the time of reading. `RegisterLib` registers `processPushEvents` under the key `"npwebapi2_push"` with `NpManager::RegisterNpCallback`, and `sceNpCheckCallback` runs every registered hook. But the body of `processPushEvents()` is empty (its log line is commented out), so registered push event callbacks are never invoked. This means filters and callbacks are pure bookkeeping at the moment: creating, registering, unregistering and deleting them changes state and return codes, but nothing reaches the game. For an emulator that does not deliver push events, a stub that returns `ORBIS_OK` for these two calls should be observably equivalent to shadPS4 for a game that registers and unregisters correctly. The two differences are the error codes for wrong ids and the missing wait for a running callback. ## What was not verified - Official Sony documentation for any of these functions. Meanings come from names, signatures and the shadPS4 code. - The body of `NpHandler::GetUserIdByAccountId` (how an account id is mapped to a local user). - The bodies of `LibraryContext::GetPushEventFilter` and `LibraryContext::DeletePushEventFilter`, and the declarations in `np_web_api2_internal.h` / `np_web_api2_context.h`. - Behavior on a real console. All error codes are the PS4 values defined in shadPS4's `np_error.h`. ## Sources - shadPS4 `src/core/libraries/np/np_manager.cpp` (`sceNpGetUserIdByAccountId`, `sceNpGetUserIdByOnlineId`, `RegisterLib`): <https://github.com/shadps4-emu/shadPS4/blob/main/src/core/libraries/np/np_manager.cpp> - shadPS4 `src/core/libraries/np/np_web_api2/np_web_api2.cpp` (exports and `LIB_FUNCTION` registrations): <https://github.com/shadps4-emu/shadPS4/blob/main/src/core/libraries/np/np_web_api2/np_web_api2.cpp> - shadPS4 `src/core/libraries/np/np_web_api2/np_web_api2_context.cpp` (`deletePushEventFilter`, `unregisterPushEventCallback`, `processPushEvents`, `LibraryContext` and `UserContext` methods): <https://github.com/shadps4-emu/shadPS4/blob/main/src/core/libraries/np/np_web_api2/np_web_api2_context.cpp> - shadPS4 `src/core/libraries/np/np_web_api2/np_web_api2_push_event.cpp` (`PushEventFilter::Initialize`): <https://github.com/shadps4-emu/shadPS4/blob/main/src/core/libraries/np/np_web_api2/np_web_api2_push_event.cpp> - shadPS4 `src/core/libraries/np/np_error.h` (`ORBIS_NP_ERROR_*`, `ORBIS_NP_WEBAPI2_ERROR_*` values): <https://github.com/shadps4-emu/shadPS4/blob/main/src/core/libraries/np/np_error.h> - shadPS4 v0.17.0 release notes (push events added to the Web API layer): <https://github.com/shadps4-emu/shadPS4/releases/tag/v.0.17.0> - shadPS4 repository: <https://github.com/shadps4-emu/shadPS4>
Author
Owner

@⁠Ekt0re on GitHub · 2026-10-28 20:25 UTC · original · edited 2026-10-28 20:35 UTC

-- PPSA01521: Horizon Forbidden West

KytyPS5-2026-10-28-6c01401

Unresolved import stub called: UOjiprYwVNw[TextToSpeech2_v1][TextToSpeech2_v1.1][Func]
Unresolved import stub called: 64nkF7LGk8w[SystemService_v1][SystemService_v1.1][Func]
Unresolved import stub called: uInYhy7xa+U[SystemService_v1][SystemService_v1.1][Func]

Full log: Reference error (with log): #847

Notes

"Horizon Forbidden West" calls three functions that KytyPS5 does not resolve: one from the TextToSpeech2 library and two from SystemService.

NID Library Status in KytyPS5
UOjiprYwVNw TextToSpeech2 (TextToSpeech2_v1 / v1.1) not implemented, no reference implementation found
64nkF7LGk8w SystemService (SystemService_v1 / v1.1) implemented as a stub in pull request #1899
uInYhy7xa+U SystemService (SystemService_v1 / v1.1) implemented as a stub in pull request #1899

1. Reference implementation: pull request #1899

An example of how to handle the two SystemService imports is in this pull request: #1899/

The change is in src/libs/libSystemService.cpp. It implements 64nkF7LGk8w and uInYhy7xa+U with stubs that only print the function name and return OK:

static int KYTY_SYSV_ABI SystemServiceDisableMediaPlay() {
	PRINT_NAME();
 
	return OK;
}
 
static int KYTY_SYSV_ABI SystemServiceReenableMediaPlay() {
	PRINT_NAME();
 
	return OK;
}

Registration:

LIB_FUNC("64nkF7LGk8w", SystemService::SystemServiceDisableMediaPlay);
LIB_FUNC("uInYhy7xa+U", SystemService::SystemServiceReenableMediaPlay);

The names SystemServiceDisableMediaPlay and SystemServiceReenableMediaPlay are the ones used in the pull request. They suggest a pair that disables and re-enables media playback in the system, so a stub returning success is a reasonable fit for an emulator that has no system media player. This reading comes from the names, not from official documentation.

2. UOjiprYwVNw (TextToSpeech2)

This function is not implemented in the pull request above.

The name and signature of this function it's probably "sceTextToSpeech2Initialize".

Suggested implementation. It can probably be handled with a stub in the same way as the SystemService functions above, returning OK. A placeholder following the existing pattern:

// Name and signature unknown: this is a placeholder for NID UOjiprYwVNw.
static int KYTY_SYSV_ABI TextToSpeech2_UOjiprYwVNw() {
	PRINT_NAME();
 
	return OK;
}
 
LIB_FUNC("UOjiprYwVNw", TextToSpeech2::TextToSpeech2_UOjiprYwVNw);

Things to check when applying it:

  • Where the TextToSpeech2 library is registered in KytyPS5. If it has no library file yet, one is needed for the TextToSpeech2_v1 / TextToSpeech2_v1.1 module.
  • Whether the real function takes arguments or writes an output (for example a handle or an id). A stub that returns OK without filling an output could leave the game with an uninitialized value. The log of the next run should show it.
  • The emulator has no text-to-speech engine, so the game is expected to continue without speech output.

What was not verified

  • The real name, signature and behavior of UOjiprYwVNw.
  • The content of pull request #1899 beyond the snippets quoted above, and whether it has been merged.
**@⁠Ekt0re** on GitHub · 2026-10-28 20:25 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1960#issuecomment-6479880569) · edited 2026-10-28 20:35 UTC -- PPSA01521: Horizon Forbidden West KytyPS5-2026-10-28-6c01401 ``` Unresolved import stub called: UOjiprYwVNw[TextToSpeech2_v1][TextToSpeech2_v1.1][Func] Unresolved import stub called: 64nkF7LGk8w[SystemService_v1][SystemService_v1.1][Func] Unresolved import stub called: uInYhy7xa+U[SystemService_v1][SystemService_v1.1][Func] ``` Full log: Reference error (with log): https://git.gtahub.st/github/KytyPS5--KytyPS5/issues/847 **Notes** "Horizon Forbidden West" calls three functions that KytyPS5 does not resolve: one from the TextToSpeech2 library and two from SystemService. | NID | Library | Status in KytyPS5 | |---|---|---| | `UOjiprYwVNw` | TextToSpeech2 (`TextToSpeech2_v1` / `v1.1`) | not implemented, no reference implementation found | | `64nkF7LGk8w` | SystemService (`SystemService_v1` / `v1.1`) | implemented as a stub in pull request #1899 | | `uInYhy7xa+U` | SystemService (`SystemService_v1` / `v1.1`) | implemented as a stub in pull request #1899 | ## 1. Reference implementation: pull request #1899 An example of how to handle the two SystemService imports is in this pull request: https://git.gtahub.st/github/KytyPS5--KytyPS5/pulls/1899/ The change is in `src/libs/libSystemService.cpp`. It implements `64nkF7LGk8w` and `uInYhy7xa+U` with stubs that only print the function name and return `OK`: ```cpp static int KYTY_SYSV_ABI SystemServiceDisableMediaPlay() { PRINT_NAME(); return OK; } static int KYTY_SYSV_ABI SystemServiceReenableMediaPlay() { PRINT_NAME(); return OK; } ``` Registration: ```cpp LIB_FUNC("64nkF7LGk8w", SystemService::SystemServiceDisableMediaPlay); LIB_FUNC("uInYhy7xa+U", SystemService::SystemServiceReenableMediaPlay); ``` The names `SystemServiceDisableMediaPlay` and `SystemServiceReenableMediaPlay` are the ones used in the pull request. They suggest a pair that disables and re-enables media playback in the system, so a stub returning success is a reasonable fit for an emulator that has no system media player. This reading comes from the names, not from official documentation. ## 2. `UOjiprYwVNw` (TextToSpeech2) This function is **not implemented** in the pull request above. The name and signature of this function it's probably "sceTextToSpeech2Initialize". **Suggested implementation.** It can probably be handled with a stub in the same way as the SystemService functions above, returning `OK`. A placeholder following the existing pattern: ```cpp // Name and signature unknown: this is a placeholder for NID UOjiprYwVNw. static int KYTY_SYSV_ABI TextToSpeech2_UOjiprYwVNw() { PRINT_NAME(); return OK; } LIB_FUNC("UOjiprYwVNw", TextToSpeech2::TextToSpeech2_UOjiprYwVNw); ``` Things to check when applying it: - Where the `TextToSpeech2` library is registered in KytyPS5. If it has no library file yet, one is needed for the `TextToSpeech2_v1` / `TextToSpeech2_v1.1` module. - Whether the real function takes arguments or writes an output (for example a handle or an id). A stub that returns `OK` without filling an output could leave the game with an uninitialized value. The log of the next run should show it. - The emulator has no text-to-speech engine, so the game is expected to continue without speech output. ## What was not verified - The real name, signature and behavior of `UOjiprYwVNw`. - The content of pull request #1899 beyond the snippets quoted above, and whether it has been merged.
Author
Owner

@⁠Ekt0re on GitHub · 2026-10-29 21:50 UTC · original · edited 2026-10-31 16:57 UTC

-- PPSA31372: RIDGE RACER PS5

KytyPS5 - 5eab0ec

Unresolved import stub called: uZrOwuNJX-M[RazorCpu_v1][RazorCpu_v1.1][Func]

Full log:

_kyty.txt

Notes

Game status: In Game

The missing function uZrOwuNJX-M also appears in shadPS4, where it maps to sceRazorCpuPushMarkerStatic().

What it does: It is part of Razor CPU, the CPU profiler/analyzer in the Sony SDK. It is used to insert a marker into the code.

Suggested implementation: shadPS4 handles it entirely with a stub that logs the call and returns OK:

s32 PS4_SYSV_ABI sceRazorCpuPushMarkerStatic() {
    LOG_DEBUG(Lib_RazorCpu, "(STUBBED) called");
    return ORBIS_OK;
}
**@⁠Ekt0re** on GitHub · 2026-10-29 21:50 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1960#issuecomment-6509138627) · edited 2026-10-31 16:57 UTC -- PPSA31372: RIDGE RACER PS5 KytyPS5 - 5eab0ec ``` Unresolved import stub called: uZrOwuNJX-M[RazorCpu_v1][RazorCpu_v1.1][Func] ``` Full log: [_kyty.txt](https://github.com/user-attachments/files/34156474/_kyty.txt) **Notes** Game status: In Game The missing function `uZrOwuNJX-M` also appears in shadPS4, where it maps to `sceRazorCpuPushMarkerStatic()`. **What it does:** It is part of Razor CPU, the CPU profiler/analyzer in the Sony SDK. It is used to insert a marker into the code. **Suggested implementation:** shadPS4 handles it entirely with a stub that logs the call and returns OK: ```cpp s32 PS4_SYSV_ABI sceRazorCpuPushMarkerStatic() { LOG_DEBUG(Lib_RazorCpu, "(STUBBED) called"); return ORBIS_OK; } ```
Author
Owner

@⁠Ekt0re on GitHub · 2026-10-31 17:12 UTC · original · edited 2026-10-31 19:10 UTC

-- PPSA25256: Carmen Sandiego

KytyPS5-2026-10-31-0261891

Unresolved import stub called: IZ-qjhRqvjk[Http2_v1][Http2_v1.1][Func]

Full log:

Notes

Game status: Logo

The missing function IZ-qjhRqvjk also appears in shadPS4, where it maps to sceHttp2AbortRequest().

Below is the implementation carried out by ShardPS4

s32 PS4_SYSV_ABI sceHttp2AbortRequest(s32 req_id) {
    LOG_ERROR(Lib_Http2, "(STUBBED) called");
    s32 result = Libraries::Http::sceHttpAbortRequest(req_id);
    if (result < 0) {
        LOG_ERROR(Lib_Http2, "Failed to get abort HTTP request, error = {:#x}", result);
    }
    return result;
}

int PS4_SYSV_ABI sceHttpAbortRequest(int reqId) {
    LOG_INFO(Lib_Http, "called reqId={}", reqId);
    std::lock_guard<std::mutex> lock(g_state.m_mutex);
    if (!g_state.inited) {
        LOG_ERROR(Lib_Http, "Not initialized");
        return ORBIS_HTTP_ERROR_BEFORE_INIT;
    }
    auto it = g_state.requests.find(reqId);
    if (it == g_state.requests.end()) {
        LOG_ERROR(Lib_Http, "Invalid reqId={}", reqId);
        return ORBIS_HTTP_ERROR_INVALID_ID;
    }
    auto& req = *it->second;

    if (req.state == HttpRequestState::Created || req.state == HttpRequestState::Sending) {
        req.state = HttpRequestState::Aborted;
        req.cv.notify_all();
        LOG_INFO(Lib_Http, "reqId={} marked Aborted", reqId);
    } else {
        LOG_INFO(Lib_Http, "reqId={} already Sent/Aborted, no-op", reqId);
    }
    return ORBIS_OK;
}

Sources:

**@⁠Ekt0re** on GitHub · 2026-10-31 17:12 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1960#issuecomment-6546582097) · edited 2026-10-31 19:10 UTC -- PPSA25256: Carmen Sandiego KytyPS5-2026-10-31-0261891 ``` Unresolved import stub called: IZ-qjhRqvjk[Http2_v1][Http2_v1.1][Func] ``` Full log: <!-- Failed to upload "_kyty.txt" --> **Notes** Game status: Logo The missing function `IZ-qjhRqvjk` also appears in shadPS4, where it maps to `sceHttp2AbortRequest()`. Below is the implementation carried out by ShardPS4 ```cpp s32 PS4_SYSV_ABI sceHttp2AbortRequest(s32 req_id) { LOG_ERROR(Lib_Http2, "(STUBBED) called"); s32 result = Libraries::Http::sceHttpAbortRequest(req_id); if (result < 0) { LOG_ERROR(Lib_Http2, "Failed to get abort HTTP request, error = {:#x}", result); } return result; } int PS4_SYSV_ABI sceHttpAbortRequest(int reqId) { LOG_INFO(Lib_Http, "called reqId={}", reqId); std::lock_guard<std::mutex> lock(g_state.m_mutex); if (!g_state.inited) { LOG_ERROR(Lib_Http, "Not initialized"); return ORBIS_HTTP_ERROR_BEFORE_INIT; } auto it = g_state.requests.find(reqId); if (it == g_state.requests.end()) { LOG_ERROR(Lib_Http, "Invalid reqId={}", reqId); return ORBIS_HTTP_ERROR_INVALID_ID; } auto& req = *it->second; if (req.state == HttpRequestState::Created || req.state == HttpRequestState::Sending) { req.state = HttpRequestState::Aborted; req.cv.notify_all(); LOG_INFO(Lib_Http, "reqId={} marked Aborted", reqId); } else { LOG_INFO(Lib_Http, "reqId={} already Sent/Aborted, no-op", reqId); } return ORBIS_OK; } ``` Sources: - src/core/libraries/network/http.cpp [https://github.com/shadps4-emu/shadPS4/blob/main/src/core/libraries/network/http.cpp](https://github.com/shadps4-emu/shadPS4/blob/main/src/core/libraries/network/http.cpp) - src/core/libraries/network/http2.cpp [https://github.com/shadps4-emu/shadPS4/blob/main/src/core/libraries/network/http2.cpp](https://github.com/shadps4-emu/shadPS4/blob/main/src/core/libraries/network/http2.cpp )
Author
Owner

@⁠Ekt0re on GitHub · 2026-10-31 18:13 UTC · original · edited 2026-10-31 19:13 UTC

-- PPSA22408: HOT WHEELS™ Infinite Rush

KytyPS5-2026-10-31-0261891

Unresolved import stub called: otUQuZa-mv0[Http2_v1][Http2_v1.1][Func]
Unresolved import stub called: -PoIzr3PEk0[Ssl_v1][Ssl_v2.1][Func]
Unresolved import stub called: rMyh97BU5pY[Net_v1][Net_v1.1][Func]
Unresolved import stub called: Gcjh+CisAZM[Http2_v1][Http2_v1.1][Func]
Unresolved import stub called: IZ-qjhRqvjk[Http2_v1][Http2_v1.1][Func]

Full log:

Notes

Game status: Logo

[Http2_v1.1]
The missing function IZ-qjhRqvjk also appears in shadPS4, where it maps to sceHttp2AbortRequest().
The missing function otUQuZa-mv0 also appears in shadPS4, where it maps to sceHttp2GetMemoryPoolStats().
The missing function Gcjh+CisAZM also appears in shadPS4, where it maps to sceHttp2SetResolveRetry().

[Ssl_v2.1]
The missing function -PoIzr3PEk0 also appears in shadPS4, where it maps to sceSslGetMemoryPoolStats().

[Net_v1.1]
The missing function rMyh97BU5pY also appears in shadPS4, where it maps to sceNetGetMemoryPoolStats().

Below is the implementation carried out by ShardPS4

s32 PS4_SYSV_ABI sceHttp2AbortRequest(s32 req_id) {
    LOG_ERROR(Lib_Http2, "(STUBBED) called");
    s32 result = Libraries::Http::sceHttpAbortRequest(req_id);
    if (result < 0) {
        LOG_ERROR(Lib_Http2, "Failed to get abort HTTP request, error = {:#x}", result);
    }
    return result;
}

s32 PS4_SYSV_ABI sceHttp2SetResolveRetry() {
    LOG_ERROR(Lib_Http2, "(STUBBED) called");
    return ORBIS_OK;
}

s32 PS4_SYSV_ABI sceHttp2GetMemoryPoolStats() {
    LOG_ERROR(Lib_Http2, "(STUBBED) called");
    return ORBIS_OK;
}

s32 PS4_SYSV_ABI sceNetGetMemoryPoolStats(s32 memid, OrbisNetMemoryPoolStats* stat) {
    std::scoped_lock lock{g_pools_mutex};
    const Pool* pool = FindPool(memid);
    if (pool == nullptr) {
        return SetErrno(ORBIS_NET_EBADF);
    }
    if (stat == nullptr) {
        return SetErrno(ORBIS_NET_EINVAL);
    }
    *stat = {};
    stat->pool_size = static_cast<u64>(pool->size);
    return ORBIS_OK;
}

int PS4_SYSV_ABI sceSslGetMemoryPoolStats() {
    LOG_ERROR(Lib_Ssl, "(STUBBED) called");
    return ORBIS_OK;
}

int PS4_SYSV_ABI sceHttpAbortRequest(int reqId) {
    LOG_INFO(Lib_Http, "called reqId={}", reqId);
    std::lock_guard<std::mutex> lock(g_state.m_mutex);
    if (!g_state.inited) {
        LOG_ERROR(Lib_Http, "Not initialized");
        return ORBIS_HTTP_ERROR_BEFORE_INIT;
    }
    auto it = g_state.requests.find(reqId);
    if (it == g_state.requests.end()) {
        LOG_ERROR(Lib_Http, "Invalid reqId={}", reqId);
        return ORBIS_HTTP_ERROR_INVALID_ID;
    }
    auto& req = *it->second;

    if (req.state == HttpRequestState::Created || req.state == HttpRequestState::Sending) {
        req.state = HttpRequestState::Aborted;
        req.cv.notify_all();
        LOG_INFO(Lib_Http, "reqId={} marked Aborted", reqId);
    } else {
        LOG_INFO(Lib_Http, "reqId={} already Sent/Aborted, no-op", reqId);
    }
    return ORBIS_OK;
}

Sources:

**@⁠Ekt0re** on GitHub · 2026-10-31 18:13 UTC · [original](https://github.com/KytyPS5/KytyPS5/issues/1960#issuecomment-6547266481) · edited 2026-10-31 19:13 UTC -- PPSA22408: HOT WHEELS™ Infinite Rush KytyPS5-2026-10-31-0261891 ``` Unresolved import stub called: otUQuZa-mv0[Http2_v1][Http2_v1.1][Func] Unresolved import stub called: -PoIzr3PEk0[Ssl_v1][Ssl_v2.1][Func] Unresolved import stub called: rMyh97BU5pY[Net_v1][Net_v1.1][Func] Unresolved import stub called: Gcjh+CisAZM[Http2_v1][Http2_v1.1][Func] Unresolved import stub called: IZ-qjhRqvjk[Http2_v1][Http2_v1.1][Func] ``` Full log: <!-- Failed to upload "_kyty.txt" --> **Notes** **Game status:** Logo **[Http2_v1.1]** The missing function `IZ-qjhRqvjk` also appears in shadPS4, where it maps to `sceHttp2AbortRequest()`. The missing function `otUQuZa-mv0` also appears in shadPS4, where it maps to `sceHttp2GetMemoryPoolStats()`. The missing function `Gcjh+CisAZM` also appears in shadPS4, where it maps to `sceHttp2SetResolveRetry()`. **[Ssl_v2.1]** The missing function `-PoIzr3PEk0` also appears in shadPS4, where it maps to `sceSslGetMemoryPoolStats()`. **[Net_v1.1]** The missing function `rMyh97BU5pY` also appears in shadPS4, where it maps to `sceNetGetMemoryPoolStats()`. Below is the implementation carried out by ShardPS4 ```cpp s32 PS4_SYSV_ABI sceHttp2AbortRequest(s32 req_id) { LOG_ERROR(Lib_Http2, "(STUBBED) called"); s32 result = Libraries::Http::sceHttpAbortRequest(req_id); if (result < 0) { LOG_ERROR(Lib_Http2, "Failed to get abort HTTP request, error = {:#x}", result); } return result; } s32 PS4_SYSV_ABI sceHttp2SetResolveRetry() { LOG_ERROR(Lib_Http2, "(STUBBED) called"); return ORBIS_OK; } s32 PS4_SYSV_ABI sceHttp2GetMemoryPoolStats() { LOG_ERROR(Lib_Http2, "(STUBBED) called"); return ORBIS_OK; } s32 PS4_SYSV_ABI sceNetGetMemoryPoolStats(s32 memid, OrbisNetMemoryPoolStats* stat) { std::scoped_lock lock{g_pools_mutex}; const Pool* pool = FindPool(memid); if (pool == nullptr) { return SetErrno(ORBIS_NET_EBADF); } if (stat == nullptr) { return SetErrno(ORBIS_NET_EINVAL); } *stat = {}; stat->pool_size = static_cast<u64>(pool->size); return ORBIS_OK; } int PS4_SYSV_ABI sceSslGetMemoryPoolStats() { LOG_ERROR(Lib_Ssl, "(STUBBED) called"); return ORBIS_OK; } int PS4_SYSV_ABI sceHttpAbortRequest(int reqId) { LOG_INFO(Lib_Http, "called reqId={}", reqId); std::lock_guard<std::mutex> lock(g_state.m_mutex); if (!g_state.inited) { LOG_ERROR(Lib_Http, "Not initialized"); return ORBIS_HTTP_ERROR_BEFORE_INIT; } auto it = g_state.requests.find(reqId); if (it == g_state.requests.end()) { LOG_ERROR(Lib_Http, "Invalid reqId={}", reqId); return ORBIS_HTTP_ERROR_INVALID_ID; } auto& req = *it->second; if (req.state == HttpRequestState::Created || req.state == HttpRequestState::Sending) { req.state = HttpRequestState::Aborted; req.cv.notify_all(); LOG_INFO(Lib_Http, "reqId={} marked Aborted", reqId); } else { LOG_INFO(Lib_Http, "reqId={} already Sent/Aborted, no-op", reqId); } return ORBIS_OK; } ``` Sources: - src/core/libraries/network/http.cpp [https://github.com/shadps4-emu/shadPS4/blob/main/src/core/libraries/network/http.cpp](https://github.com/shadps4-emu/shadPS4/blob/main/src/core/libraries/network/http.cpp) - src/core/libraries/network/http2.cpp [https://github.com/shadps4-emu/shadPS4/blob/main/src/core/libraries/network/http2.cpp](https://github.com/shadps4-emu/shadPS4/blob/main/src/core/libraries/network/http2.cpp ) - src/core/libraries/network/ssl.cpp [https://github.com/shadps4-emu/shadPS4/blob/main/src/core/libraries/network/ssl.cpp](https://github.com/shadps4-emu/shadPS4/blob/main/src/core/libraries/network/ssl.cpp) - src/core/libraries/net/net.cpp (https://github.com/shadps4-emu/shadPS4/blob/main/src/core/libraries/net/net.cpp)[https://github.com/shadps4-emu/shadPS4/blob/main/src/core/libraries/net/net.cpp]
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/KytyPS5--KytyPS5#1960
No description provided.