feat(libs): PS4 imports and a buffer option inFAMOUS Second Son needs #10531
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/10531"
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 DealPotato on 2026-10-24T08:45:07Z.
What
inFAMOUS Second Son (CUSA00004) imports four PS4 entry points main does not export, and its display buffers carry an option the PS4 path refused:
libSceDiscMapfJgP+wqifnoanswersSCE_DISC_MAP_ERROR_NO_BITMAP_INFOand writes nothing, likesceDiscMapIsRequestOnHDDandioKMruft1ek. The title's bundledlibSceFios2passes a path, an offset, a size and three 64-bit outputs, and after the error keeps the request unmapped.sceNpRegisterGamePresenceCallbackAaccepts a callback that is never called, since the user is signed out, and returns callback ID 1; a null callback isSCE_NP_ERROR_INVALID_ARGUMENT.sceVideoOutConfigureOutputMode_only checks its arguments and the handle; no mode is applied.sceKernelIsNeoModereturns 0, so the title takes its base PS4 paths. It was a throwing stub inlibkernel_sysonly, and the title imports it fromlibkernel. It moves tolibkernel; the relinker resolves alibkernel_sysimport there too.sceVideoOutRegisterBuffersaccepts the strict colorimetry option (8) and passes it on, assceVideoOutRegisterBuffers2does. Any other PS4 option still throwsVIDEO_OUT_ERROR_INVALID_OPTION.sceVideoOutGetDeviceCapabilityInfo_andsceVideoOutModeSetAny_, which the title also imports, are left to #9880.None of the answers is measured on a console; each has a debt note.
Tested
Windows 11 Pro (build 26300), WinLibs GCC 15.2.0 (MinGW), on this branch:
guest_disc_map,guest_np_managerandguest_video_out_output_modecheck the new entry points;video_out_flip_ps4, run withSDL_VIDEODRIVER=windows, registers a PS4 buffer with the strict colorimetry option and checks that the option reaches the buffer group. The NP, DiscMap, VideoOut, kernel, import and export tests pass (94).tools/check_conventions.py --base origin/mainpasses.ps4/limbo-gpu(45625370e) merged with main and the PS4 pull requests it needs (#9432, #9893, #9889, #9671, #8285): with these changes it no longer stops at the unresolvedsceKernelIsNeoModeimport or atsceVideoOutRegisterBuffers, presents frames and plays its intro video. It then stops in AGC on a GCN-tiled 1D array texture, which is outside this pull request.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
Pull request closed