Commit Graph

11 Commits

Author SHA1 Message Date
Zorchenhimer ac5f29a696
[build-script] Start adding a new build script format
This format is meant to replace the current .json file when describing
.studybox ROM files, as well as handle compiling/assembling new ROMs
from scratch.

In theory, this will handle both ROMs that were decoded from tape as
well as instructions to build a new ROM from various files.  This
will include options to compile scripts, encode images, and handle some
audio timing by allowing individual audio files for each page.
2025-11-29 18:15:51 -05:00
Zorchenhimer 75e0ee2ba3
[rom] Use mode 0666 when writing rom file 2025-11-22 19:44:48 -05:00
Zorchenhimer 88e095f426
[sbutil] Use filname field in json when packing
- Use the filename provided in the json file when writing out a .studybox
  file.  By default, it will not overwrite an existing file.
- Passing --force will overwrite an existing file.
- Passing --output will override the filename in the json.
2025-11-22 19:42:10 -05:00
Zorchenhimer 6831274a25
[rom] Fix writing AUDI data
The length of the audio chunk was incorrect and did not include the
format bytes.  This was also the source of the "garbage four bytes"
that were being chopped off before.
2025-11-16 17:38:41 -05:00
Zorchenhimer e01c51bbc6
Add missing newline; Turn an error into a WARN
- Added missing newline to a delay packet warning.
- Turned the error for the invalid checksum on a delay packet into a
  warning.
2025-11-07 21:46:26 -05:00
Zorchenhimer b032b50b6a
[rom] Tweak output for packetMarkDataStart
Changed the variable names in the Asm() output for the
packetMarkDataStart type:

    ArgA -> Bank
    ArgB -> Addr
2025-10-26 19:01:03 -04:00
Zorchenhimer b3312a8500
[rom] Tweaked packet info output
Tweaked the packet info strings to be a little more clear on what fields
are printed.
2025-09-06 22:46:26 -04:00
Zorchenhimer 1ebe698ac4
[rom] Add NoAudio option to export
Added an option to exclude the audio file from the unpacked rom data.
2025-09-06 22:45:33 -04:00
Zorchenhimer 6a3a51fef7
[rom] Fix exported file modes
Export files with mode 0666 instead of 0777.
2025-09-06 22:24:34 -04:00
Zorchenhimer 3d5790e230
Some cleanup an the decode code
Added a bunch of comments and clarified some variables in the decoding
logic.
2024-09-29 15:00:44 -04:00
Zorchenhimer 928a8e2faf
Start migrating go-nes/studybox stuff over here
I need a bunch of tools for studybox related stuff.  It makes more sense
to have a separate project for them instead of trying to shove all the
functionality I want into a single command in the go-nes project.
2024-05-15 23:47:29 -04:00