fix(ngs2): return native voice-index error for Dark Forces #4788
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4788"
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 PrintOrb on 2026-10-12T21:56:16Z.
What
STAR WARS: Dark Forces Remaster (PPSA19728 02.000.000) terminates during startup with
sceNgs2RackGetVoiceHandle: invalid argument. The title creates a one-voice reverb rack, obtains index 0 and requests index 1. Return the native bounds error 0x804A8305 without changing the output handle rather than throwing. The value and no-output-write path follow prosper's pinned native-module analysis linked in the debt note; no independent PS5 probe performed here.Tested
Native Windows, Release build, based on main
529f7bfd4. Fulllibsbuild passes. The newngs2_voiceindexregression aborts with current main's Rack.cpp and passes after restoring the fix. Existingngs2_renderandngs2_streamalso pass (3/3). Conventions, test registration and whitespace checks pass. Newer mainee4962190was checked before publication: neither affected library changed, and the branch merges cleanly; the build/test results above are for the stated tested base.Earlier title testing with this fix passed the reported stop and exposed a separate SDL audio initialization race. With both fixes, manual testing completed the first mission; Tab/PDA performance problems remain. Gameplay was not repeated on the refreshed main build.
Checklist
main; no other open PR implements the same functionsImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-13T23:24:59Z.
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/libSceNgs2.native.mdL27docs/dev/debt/libSceNgs2.native.mdL27Imported from boykopovar/AnyPS5. Originally posted by johnohhh1 on 2026-10-14T02:02:18Z.
Independent Linux validation of
62978cda4cde7f6171cfceacf8668a8e8838754c, applied alone to main959d39fb2b050fa76beed0b49b4c2f13a119ab5a.Ubuntu 26.04.1 x86-64, GCC 15.2.0, Release, bundled dependencies, testing and SPIR-V Tools enabled.
ngs2_voiceindex; serial CTest with a 30-second maximum.ngs2_voiceindex_testsexecutable aborts against frozen baseline libraries withsceNgs2RackGetVoiceHandle: invalid argument, and passes against the patched libraries.These are synthetic Linux checks of the implementation and its documented bounds-error contract. No title or native PS5 was run, and this does not independently establish the console's error code or the unchanged validation-order semantics. No additional Windows run.
SDL_AUDIODRIVER=dummywas set only in child test processes.AI-assisted validation/report: Codex. Original implementation and authorship preserved.
Pull request closed