fix(videoout): keep mouse helpers out of NID exports #5936

Merged
hossiendehghan989 merged 1 commit from upstream-pr/5936 into main 2026-10-14 18:00:35 +00:00
hossiendehghan989 commented 2026-10-14 16:24:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by hossiendehghan989 on 2026-10-14T16:24:13Z.


What

MouseIsOpen_nid_postfix was being converted by nid_patcher to YNw9Xk5iNWo. libSceVideoOut also imports that symbol for mouse capture; the export added by #5608 can shadow the real helper and throw during presentation.

Rename the two cross-library mouse helpers to _nid_no_patch to keep their internal names stable and out of public NID exports. No guessed NID export or fallback is added. This fixes the collision behind the revert; the separate Onimusha module-loading issue still needs a current reproduction and module list.

Tested

  • Linux Release CMake configuration.
  • Built mouse_tests and video_out_mouse_tests.
  • ctest --test-dir build --output-on-failure -R '^(mouse_input|video_out_mouse)$' — 2/2 passed.
  • Built patched libSceMouse.prx and libSceVideoOut.prx; nm -D confirms both helpers remain named symbols, with no YNw9Xk5iNWo import or export.
  • readelf -d confirms libSceVideoOut.prx still depends on libSceMouse.prx.
  • git diff --check and python3 tools/check_conventions.py --base origin/main passed.
  • No game runtime or GPU tests were run.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw; silent stubs are listed in technical-debt docs
  • No notes, investigation files, or images added
  • No new third-party code
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Unblocks: none
  • GPUs tested: n/a — no GPU tests run
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4860975991 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5936). Originally posted by [hossiendehghan989](https://github.com/hossiendehghan989) on 2026-10-14T16:24:13Z. --- ### What MouseIsOpen_nid_postfix was being converted by nid_patcher to YNw9Xk5iNWo. libSceVideoOut also imports that symbol for mouse capture; the export added by #5608 can shadow the real helper and throw during presentation. Rename the two cross-library mouse helpers to _nid_no_patch to keep their internal names stable and out of public NID exports. No guessed NID export or fallback is added. This fixes the collision behind the revert; the separate Onimusha module-loading issue still needs a current reproduction and module list. ### Tested - Linux Release CMake configuration. - Built mouse_tests and video_out_mouse_tests. - ctest --test-dir build --output-on-failure -R '^(mouse_input|video_out_mouse)$' — 2/2 passed. - Built patched libSceMouse.prx and libSceVideoOut.prx; nm -D confirms both helpers remain named symbols, with no YNw9Xk5iNWo import or export. - readelf -d confirms libSceVideoOut.prx still depends on libSceMouse.prx. - git diff --check and python3 tools/check_conventions.py --base origin/main passed. - No game runtime or GPU tests were run. ### Checklist - [x] Based on current main; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except technical debt - [x] Unimplemented paths throw; silent stubs are listed in technical-debt docs - [x] No notes, investigation files, or images added - [x] No new third-party code - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Unblocks: none - [x] GPUs tested: n/a — no GPU tests run - [x] AI-assisted: yes
hossiendehghan989 commented 2026-10-14 16:30:55 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by hossiendehghan989 on 2026-10-14T16:30:55Z.


@oneandonlydean Could you review #5936 when you have a chance? It follows up on your diagnosis in #5608 by keeping the internal mouse helper symbols out of NID exports. The mouse tests pass locally, and the latest Conventions check is green. Thanks again for identifying the binding collision.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6173185940 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5936#issuecomment-6173185940). Originally posted by [hossiendehghan989](https://github.com/hossiendehghan989) on 2026-10-14T16:30:55Z. --- @oneandonlydean Could you review #5936 when you have a chance? It follows up on your diagnosis in #5608 by keeping the internal mouse helper symbols out of NID exports. The mouse tests pass locally, and the latest Conventions check is green. Thanks again for identifying the binding collision.
oneandonlydean commented 2026-10-14 18:01:10 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-14T18:01:10Z.


Checked: no other references to the old names, the patched libSceMouse.prx exports MouseIsOpen_nid_no_patch / MousePublishInput_nid_no_patch and libSceVideoOut.prx imports them by name, so YNw9Xk5iNWo is gone from both. Build + ctest -R "mouse|video_out" green, and a title that presents every frame runs the same as on main. Merging.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6174911913 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5936#issuecomment-6174911913). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-14T18:01:10Z. --- Checked: no other references to the old names, the patched `libSceMouse.prx` exports `MouseIsOpen_nid_no_patch` / `MousePublishInput_nid_no_patch` and `libSceVideoOut.prx` imports them by name, so `YNw9Xk5iNWo` is gone from both. Build + `ctest -R "mouse|video_out"` green, and a title that presents every frame runs the same as on main. Merging.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!5936
No description provided.