fix(libSceVideoOut): export unknown Onimusha import NID #5608
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5608"
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 hossiendehghan989 on 2026-10-14T01:02:13Z.
What
Addresses #5595 by exporting the unresolved
libSceVideoOutNIDYNw9Xk5iNWo.Onimusha Way of the Sword (
PPSA27836) currently fails while loadinglibSceVideoOut.prxbecause this newer-SDK import is not present in the library. This change exposes the NID through the same explicit-export path used for other unknown VideoOut functions, allowing module loading to proceed to the next unresolved dependency.The observed import shape is represented as
(handle, status), but the semantic name, output layout, and console behavior are not known. This PR deliberately does not guess an implementation or silently return success: if the function is reached, it reportsNotImplemented_nid_no_patch. The technical-debt entry records the limitation and the evidence needed for a future implementation. This PR does not claim to fully implement the issue; it isolates the missing export without hiding the remaining runtime work.Tested
git diff --checkg++ -std=c++20 -fsyntax-only -Icore/libs -Icore -Icore/libs/prx -I3rdparty/SDL2/include core/libs/prx/libSceVideoOut/Unimplemented.cppnmthatYNw9Xk5iNWo_nid_no_patch_cutis exported.Checklist
main; no other open PR implements the same functionNotImplemented_nid_no_patch); the limitation is recorded indocs/dev/debt/libSceVideoOut.md.mdfiles or images added to the repositoryPPSA27836; issue #5595 remains open for the actual implementationImported from boykopovar/AnyPS5. Originally posted by hossiendehghan989 on 2026-10-14T01:09:58Z.
Follow-up validation after the initial PR review:
The PR remains deliberately export-only. It unblocks module loading without inventing the unknown function semantics; issue #5595 stays open for the real implementation once the ABI and output layout are known.
Imported from boykopovar/AnyPS5. Originally posted by Amirtheshwaran on 2026-10-14T03:15:50Z.
Tested on Windows 11 (WinLibs MinGW GCC 15.2.0 r7, Ninja, CMake):
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-14T05:11:24Z.
Our PPSA27836 is v01.000.001, which doesn't import
YNw9Xk5iNWo, so we can't exercise it here. Which version of the title imports it? The export only throws if called, so it can go in on a green build; the version helps the next person who hits the stop.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-14T06:46:43Z.
The linked issue identifies the import in Onimusha WotS Patch v01.000.002. The reporter later confirmed Base v01.000.001 has no such import; that narrows this export-only fix to the Patch build or other consumers. See the version-specific update on #5595.
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-14T07:04:19Z.
Rebased onto main: main already has
sceVideoOutGetOutputStatusWithVrrinOutput.cpp, so the second commit became empty and dropped. What's left is the Onimusha NID export and its debt line.Imported from boykopovar/AnyPS5. Originally posted by Raghav314 on 2026-10-14T08:58:33Z.
This breaks presentation on
mainfor me: since this merged, Hades II (PPSA36082) aborts at its first present withI ran it on my machine (Linux, CachyOS, GCC, RTX 4090):
872f52320aborts like this,d8888df9b(just before this PR) runs, and872f52320with only5dc711192reverted runs again.YNw9Xk5iNWois not a video out function. It is the NID ofMouseIsOpen, AnyPS5's own helper:libSceMouseexportsMouseIsOpen_nid_postfix, which the NID patch turns intoYNw9Xk5iNWo(nm -D libSceMouse.prxlistsT YNw9Xk5iNWo), andlibSceVideoOut's presenter calls it every frame throughMouseInput::UpdateCapture(nm -D libSceVideoOut.prxlistsU YNw9Xk5iNWo). With this PR,libSceVideoOutdefines a symbol of the same name itself, so its own call binds to the new stub instead oflibSceMouse's helper, and the stub throws inside the presentation thread. This probably hits every title that presents, not only Hades II.So the unresolved
YNw9Xk5iNWoseen with Onimusha was most likelylibSceVideoOut's import ofMouseIsOpenwithlibSceMousenot loaded, not an import of the game. I think the export should be removed again (and its debt entry), and the Onimusha case looked at from the module loading side.LLM assistance used.
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-14T08:59:37Z.
Reverted in #5738, thanks @Raghav314, that's the cause: the stub took over
libSceVideoOut's own call toMouseIsOpen(NIDYNw9Xk5iNWo), so every present threw. Dreaming Sarah hit it too. @hossiendehghan989 the unresolvedYNw9Xk5iNWoin the Onimusha log is that internal import, which meanslibSceMousewasn't loaded there; if Onimusha still stops on it on currentmain, please post the module list from that run.Imported from boykopovar/AnyPS5. Originally posted by hossiendehghan989 on 2026-10-14T15:51:01Z.
Thanks for tracing this to the internal
MouseIsOpenimport and reverting the change. I missed that exporting the same NID fromlibSceVideoOutcould redirect its own call to the throwing stub; sorry for the regression. I have not rerun Onimusha against currentmain, so I do not have a module list to add. I will not reintroduce an export-only stub; any follow-up should start from the loader/module-loading path and evidence from a current repro.