fix(libs): return what the firmware returns from 31 more calls it does not implement #8307
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/8307"
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 hypermoist on 2026-10-20T09:39:36Z.
What
These 31 exports were
NotImplementedstubs. In the decrypted firmware modules (system/common/lib/*.sprx), each is a single constant return;sceAjmInstanceCodecTypeis one shift andscePadEnableExtensionPortalso stores its argument byte. None makes an IPC call or a syscall, so the exports now do the same. This follows #8303 and #8305 and covers the files other open pull requests also edit; every change here is at lines they leave alone.sceNetCtlApRpCheckCallback,ClearEvent,RegisterCallback,UnregisterCallback,GetResult,GetState,GetInfo,Start,StartWithRetry,StartConf,Stopxor eax, eax; retsceSaveDataCheckIpmiIfSize,sceSaveDataDebug,DebugCheckBackupData,DebugCleanMount,DebugCompiledSdkVersion,DebugCreateSaveDataRoot,DebugProspero,DebugRemoveSaveDataRoot,DebugTargetxor eax, eax; retsceHmdGetDistortionWorkMemoryAlignmov eax, 0x400; ret0x400sceHmdGetDistortionWorkMemorySizemov eax, 0x20000; ret0x20000sceHmdDistortionGetCompoundEyeCorrectionCommandmov eax, 0x81110009; retsceHttpDbgEnableProfile,sceHttpDbgSetPrintfret/xor eax, eax; retsceImeForTestFunctionmov eax, 0x80bc00ff; retErrorInternal, added after the existingError*codesscePadEnableExtensionPortsceVideoRecordingInit,sceVideoRecordingTerm(inlibSceVideoRecording.sprx),sceVideoRecordingSendCommand(inlibSceVideoRecording.native.sprx)xor eax, eax; retsceAjmInstanceCodecTypemov eax, edi; shr eax, 0xe; retinstance_id >> 14, which matches the(codec << 14) | counteridssceAjmInstanceCreatebuilds heresceAjmInstanceCodecTypeis also removed from the debt entry for Ajm declarations that only resolve imports.Left out because open pull requests edit those lines:
sceHmdInternalRegisterEventCallback(#8256) andsceNpRegisterGamePresenceCallback(#6977).Tested
Linux (CachyOS, GCC, Release): the eight libraries build, the 88 tests matching
ajm|ime|savedata|netctl|pad|hmd|httppass, andcheck_conventionspasses.pr_overlapcould not compare six files because those PRs conflict withmain. Checked by hand against their hunks (#3205, #5038, #6879, #6977, #7201, #7881): every edited function is clear. No title was run.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
https://claude.ai/code/session_01RbLgECLQ2bpDM7oe2urGZK
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-20T09:40:26Z.
Progress report (
2d4c51e→f4689c2)📈 System libraries: 50.28% (+0.35%, +31 implemented functions)
✅ 31 implemented
sceAjmInstanceCodecTypesceHmdDistortionGetCompoundEyeCorrectionCommandsceHmdGetDistortionWorkMemoryAlignsceHmdGetDistortionWorkMemorySizesceHttpDbgEnableProfilesceHttpDbgSetPrintfsceImeForTestFunctionsceNetCtlApRpCheckCallbacksceNetCtlApRpClearEventsceNetCtlApRpGetInfosceNetCtlApRpGetResultsceNetCtlApRpGetStatesceNetCtlApRpRegisterCallbacksceNetCtlApRpStartsceNetCtlApRpStartConfsceNetCtlApRpStartWithRetrysceNetCtlApRpStopsceNetCtlApRpUnregisterCallbackscePadEnableExtensionPortsceSaveDataCheckIpmiIfSizesceSaveDataDebugsceSaveDataDebugCheckBackupDatasceSaveDataDebugCleanMountsceSaveDataDebugCompiledSdkVersionsceSaveDataDebugCreateSaveDataRootsceSaveDataDebugProsperosceSaveDataDebugRemoveSaveDataRootsceSaveDataDebugTargetsceVideoRecordingInitsceVideoRecordingSendCommandsceVideoRecordingTerm⚪ 29 behaviourally empty (constant return or throw)
sceHmdGetDistortionWorkMemoryAlignsceHmdGetDistortionWorkMemorySizesceHttpDbgEnableProfilesceHttpDbgSetPrintfsceImeForTestFunctionsceNetCtlApRpCheckCallbacksceNetCtlApRpClearEventsceNetCtlApRpGetInfosceNetCtlApRpGetResultsceNetCtlApRpGetStatesceNetCtlApRpRegisterCallbacksceNetCtlApRpStartsceNetCtlApRpStartConfsceNetCtlApRpStartWithRetrysceNetCtlApRpStopsceNetCtlApRpUnregisterCallbackscePadEnableExtensionPortsceSaveDataCheckIpmiIfSizesceSaveDataDebugsceSaveDataDebugCheckBackupDatasceSaveDataDebugCleanMountsceSaveDataDebugCompiledSdkVersionsceSaveDataDebugCreateSaveDataRootsceSaveDataDebugProsperosceSaveDataDebugRemoveSaveDataRootsceSaveDataDebugTargetsceVideoRecordingInitsceVideoRecordingSendCommandsceVideoRecordingTermImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-20T10:00:08Z.
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)docs/dev/debt/libSceAjm.native.mdL6Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
core/libs/prx/libSceAjm.native/Export.cppcore/libs/prx/libScePad/Export.cppcore/libs/prx/libSceSaveData.native/Export.cppcore/libs/prx/libSceNetCtl/Export.cppcore/libs/prx/libScePad/Export.cppcore/libs/prx/libSceIme/Export.cppImported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-21T06:53:43Z.
@hypermoist thanks, each body matches your table, and
instance_id >> 14agrees with howsceAjmInstanceCreatebuilds ids here (Ajm.cpp:1736). One small docs fix, not blocking:docs/dev/debt/libSceAjm.native.mdline 6 still listssceAjmInstanceCodecTypewithsceAjmInstanceExtendandsceAjmInstanceSwitchand says "these throwing declarations only resolve imports".sceAjmInstanceCodecTypeno longer throws, so please take it out of that entry, or say there that it returns the codec from the instance id as the firmware does.Also, the title says 29 calls, but the table and the diff have 31 (11 NetCtl, 9 SaveData, 3 Hmd, 3 VideoRecording, 2 Http and 1 each for Ime, Pad and Ajm).
Imported from boykopovar/AnyPS5. Originally posted by hypermoist on 2026-10-21T06:57:37Z.
@oneandonlydean thanks, both fixed.
f4689c27a5takessceAjmInstanceCodecTypeout of that debt entry, which now covers onlysceAjmInstanceExtendandsceAjmInstanceSwitch. The title and description now say 31: the diff removes 31NotImplementedcalls, matching your breakdown.Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-21T07:08:19Z.
@hypermoist thanks, both look right. Full CI on
f4689c27a5is next.