From 0abc841b47807fdd4fab9029a2cd6925102e8a10 Mon Sep 17 00:00:00 2001 From: kuba Date: Sat, 26 Sep 2026 05:53:00 +0200 Subject: [PATCH] [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. --- src/SharpEmu.Libs/Np/NpWebApi2Exports.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/SharpEmu.Libs/Np/NpWebApi2Exports.cs b/src/SharpEmu.Libs/Np/NpWebApi2Exports.cs index ba07186..e886b5e 100644 --- a/src/SharpEmu.Libs/Np/NpWebApi2Exports.cs +++ b/src/SharpEmu.Libs/Np/NpWebApi2Exports.cs @@ -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);