[NpWebApi2] Add sceNpWebApi2CheckTimeout

Poppy Playtime calls it every frame, about 6k times a session, and each
call went through the unresolved-import path. No web API request is ever
in flight, so there is nothing to expire and it returns success.
This commit is contained in:
kuba 2026-09-26 05:53:00 +02:00
parent e77a02484d
commit 0abc841b47
1 changed files with 9 additions and 0 deletions

View File

@ -118,6 +118,15 @@ public static class NpWebApi2Exports
return ctx.SetReturn(0);
}
// Titles call this every frame to expire requests that ran past their timeout. No request
// is ever in flight here, so there is nothing to expire.
[SysAbiExport(
Nid = "3Tt9zL3tkoc",
ExportName = "sceNpWebApi2CheckTimeout",
Target = Generation.Gen4 | Generation.Gen5,
LibraryName = "libSceNpWebApi2")]
public static int NpWebApi2CheckTimeout(CpuContext ctx) => ctx.SetReturn(0);
private static int CreateLibraryContextId()
{
var handle = Interlocked.Increment(ref _nextLibraryContextHandle);