Skip to content

fix(oot): open voice streams whose path has a double slash - #2052

Closed
MD5Visual wants to merge 1 commit into
ly05010419:mainfrom
MD5Visual:fix/oot-voice-double-slash-upstream
Closed

MD5Visual wants to merge 1 commit into
ly05010419:mainfrom
MD5Visual:fix/oot-voice-double-slash-upstream

Conversation

@MD5Visual

Copy link
Copy Markdown
Contributor

Navi and NPC voice lines are silent; music and effects play.

OoT requests voice lines as content://Voice/Resource//Stream/... (note the double slash). romfs_path_valid_relative rejects the empty interior component, so every voice stream open returns not-found, while single-slash music and effect paths work.

The fix collapses repeated separators in rom_path() before the index lookup, and the startup probe now opens one real voice stream (rom:/Sound/Resource//Stream/Dm_OP_0001.bwav) and compares its bytes with the same file under its normal path — so a clean launch verifies the fix against the player's own RomFS.

Tested on an app built by build_app.py from the v131072 NUP (M3 Max): voice lines play, probe passes.

OoT requests voice lines as content://Voice/Resource//Stream/... . The RomFS
validator rejected the empty interior component, so every voice stream open
returned not-found while music and effects (single slash) worked. Collapse
repeated separators before index lookup and cover the Resource//Stream form in
the startup probe, which opens one real voice stream and compares it with the
same file under its normal path.
@ly05010419

Copy link
Copy Markdown
Owner

Thank you — you found this first, and your in-game check (voice lines playing) is what confirmed the cause.

We merged #2035 for the same fix. It collapses the separators the same way, but leaves romfs_path_valid_relative strict, since that function also checks the file names in the RomFS index. It also covers the add-on content path and adds a path test that runs without game files. #2035 credits you for the find. Closing in favour of #2035.

@ly05010419 ly05010419 closed this Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants