Skip to content

keys.py: write absolute paths into pre.ini - #7

Merged
stuff merged 1 commit into
mainfrom
fix-keys-paths
Oct 11, 2026
Merged

stuff merged 1 commit into
mainfrom
fix-keys-paths

Conversation

@stuff

@stuff stuff commented Oct 11, 2026

Copy link
Copy Markdown
Owner

Hatari resolves the files named by :file breakpoints relative to the folder of the parsed ini file. keys.py wrote the paths as given on the command line, so with a relative output folder every key press was silently ignored (ERROR: given file '…/k0d.ini' doesn't exist! in log.txt). This affected the Chinese Dream example in rip/README.md, which stayed on the intro song.

keys.py now makes the folder absolute, as schedule.py already does.

Verified by running the README example as written, from rip/:

  • no missing-file errors in out/cd/log.txt;
  • np2_compare.py out/cd/m_12990.bin music/*.mod identifies Chinese Dream (26/26 patterns, 13/13 samples identical).

🤖 Generated with Claude Code

Hatari resolves the files of :file breakpoints relative to the parsed ini
file's folder, so with a relative output folder (as in the README's Chinese
Dream example) every key press was silently ignored.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@stuff
stuff merged commit e4c41de into main Oct 11, 2026
8 checks passed
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.

1 participant