Skip to content

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

Closed
MD5Visual wants to merge 2 commits into
Kolkka:feat/ootfrom
MD5Visual:fix/oot-voice-double-slash
Closed

MD5Visual wants to merge 2 commits into
Kolkka:feat/ootfrom
MD5Visual:fix/oot-voice-double-slash

Conversation

@MD5Visual

Copy link
Copy Markdown

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//Stream case to probe-fs.

Verified in the Goron cutscene: voice decodes after this change.

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.
@Kolkka

Kolkka commented Nov 10, 2026

Copy link
Copy Markdown
Owner

Merged here ef1a6d6

@Kolkka Kolkka closed this Nov 10, 2026
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
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