Repository navigation
Conversation
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 probe-fs.
Owner
|
Merged here ef1a6d6 |
ly05010419
pushed a commit
to ly05010419/MacNativeGames
that referenced
this pull request
Nov 10, 2026
Ocarina of Time asks for its voice lines as content://Voice/Resource//Stream/... . The RomFS parser rejects the empty component between "Resource" and "Stream", so every voice stream open returned not-found. Music and effects use a single slash and were unaffected. romfs_path_relative_collapsed collapses repeated separators and then applies the same strict validation, so "." and ".." are still rejected. RomFS and add-on content requests both use it, and romfs_path_relative stays strict. probe-fs gains the Resource//Stream case and a traversal case behind a double slash. tests/test_oot_romfs_paths covers the parser without game files. Found and first fixed by MD5Visual in the games/totk-based port (Kolkka#4). Co-Authored-By: MD5Visual <134655923+MD5Visual@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017tiHucPmA6R8Fqbf1Y85ny
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Voice lines never played because OoT requests them as
content://Voice/Resource//Stream/.... The RomFS validator rejected the empty interior component, so every voice open returned not-found; music and effects use a single slash and were unaffected.This collapses repeated separators before the RomFS index lookup (the index stores single-separator names) and adds a
Resource//Streamcase toprobe-fs.Verified in the Goron cutscene: voice decodes after this change.