feat(libs): add exports imported by PPSA12544 #699
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/699"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by merwie on 2026-10-05T16:41:58Z.
What
Exports imported by PPSA12544 (Hollow Knight: Silksong) and its bundled modules that were missing at startup.
Implemented:
scePthreadGetschedparam/scePthreadSetschedparam(libkernel): SCE-error counterparts of the existingpthread_getschedparam/pthread_setschedparam, built onscePthreadGetprio/scePthreadSetprio.utimes/fsync(libScePosix, in libkernel): built onsceKernelUtimes/sceKernelFsync.sceUserServiceGetAccessibilityZoomFollowFocus(libSceUserService): reports 0 likesceUserServiceGetAccessibilityZoomEnabled.sceKernelGetOperationMode(libkernel, NIDNH6xARDOVv8, verified hash of the name): PPSA12544 zeroes twointlocals, calls it and logs them with"sceKernelGetOperationMode mode=%d submode=%d", then checkssubmode == 1. Both are reported as 0, as in prosper's reimplementation (mattias800/prosper#4153); recorded in TechnicalDebt.Unimplemented exports (
NotImplemented_nid_no_patch):sceFontGraphicsDrawupFillTextureImageObject,sceFontGraphicsDrawupFillTexturePatternObjectsceHttp2CookieFlush,sceHttp2CreateCookieBox,sceHttp2SetCookieBox,sceHttp2SetRequestNoContentLengthsceNetResolverGetErrorsceSslFreeSslCertName,sceSslGetIssuerName,sceSslGetNameEntryCount,sceSslGetNameEntryInfo,sceSslGetPem,sceSslGetSubjectNamesceSystemServiceDisableMusicPlayer,sceSystemServiceOpenChallengeActivity,sceSystemServiceOpenTournamentOccurrence,sceSystemServiceReenableMusicPlayer,sceSystemServiceShowControllerSettingssceKernelFchmod,fchmod,futimes,recvmsg,sendmsgB2n8aDorSH4/PZQhiiLXRFs, also imported by the title, aresceKernelSyncOnAddressWait32/Wait64and left to #633. ThelibSceLibcInternalExtthread-exit functionsOQ-dzhlnM28,qBS714-Jr3g,tB59hFLH3SAare implemented by #641 (merged) anddbOlWdppb4oby #651; rebased onmainwithout them.vieBRwlh1Lw; libScePadfCWdlnmB1KsNames come from the shadPS4
aerolib.inlNID list.sceVideoOutVrrPegToFixedRate/sceVideoOutVrrUnpegFromFixedRate, also imported by the title, are left to #518.Tested
Windows 11, WinLibs GCC 15.2.0 r7, Ryzen 7 9800X3D, Radeon RX 9070 XT.
ctest(rebased on0518f0e0): 286/288 passed.agc_driver_lds_atomics64andagc_driver_vopc_compare_tablefail on this machine on this branch and on the relinker branch alike (Vulkan device tests).dbOlWdppb4oof #651. With #698, #700 and stubs for those, the title callssceKernelGetOperationModeduring launcher setup and continues; the other implemented functions were not observed being called.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-05T16:53:29Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)scePthreadGetschedparamscePthreadSetschedparamscePthreadGetschedparamscePthreadSetschedparamcore/libs/prx/libSceFont/src/Unimplemented.cppL445-459Imported from boykopovar/AnyPS5. Originally posted by merwie on 2026-10-05T20:49:19Z.
On the overlap note: #407 and #545 add
scePthreadGetschedparam/scePthreadSetschedparamasNotImplemented_nid_no_patchstubs. This PR implements both (policy SCHED_FIFO and the thread priority, aspthread_getschedparam/pthread_setschedparamalready do, with SCE error codes). Whichever lands second has to drop its copy; the implementation here can replace the stubs there.Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-05T23:04:53Z.
Progress report (
0518f0e→845e4dd)📉 System libraries: 78.64% (-0.57%, +6 implemented, +25 declared functions)
✅ 6 implemented
sceUserServiceGetAccessibilityZoomFollowFocusfsync_nid_postfixsceKernelGetOperationModescePthreadGetschedparamscePthreadSetschedparamutimes_nid_postfix🆕 25 declared as stubs
sceAgcUnknown_vieBRwlh1LwsceFontGraphicsDrawupFillTextureImageObjectsceFontGraphicsDrawupFillTexturePatternObjectsceHttp2CookieFlushsceHttp2CreateCookieBoxsceHttp2SetCookieBoxsceHttp2SetRequestNoContentLengthsceNetResolverGetErrorscePadUnknown_fCWdlnmB1KssceSslFreeSslCertNamesceSslGetIssuerNamesceSslGetNameEntryCountsceSslGetNameEntryInfosceSslGetPemsceSslGetSubjectNamesceSystemServiceDisableMusicPlayersceSystemServiceOpenChallengeActivitysceSystemServiceOpenTournamentOccurrencesceSystemServiceReenableMusicPlayersceSystemServiceShowControllerSettingsfchmod_nid_postfixfutimes_nid_postfixrecvmsg_nid_postfixsceKernelFchmodsendmsg_nid_postfix