sotn-decomp/tools/sotn-disk
Jonathan Hohle 20a1fb6998
Support Single BIN CUE Files (#1127)
In CUE files `FILE` is a stateful, global declaration that applies to
all following `TRACK`s. `sotn-disk` was treating `FILE` declarations as
`TRACK` delimiters which would result in incorrect parsing of CUE files
with a single `FILE`, but multiple tracks.

Now when reading a `FILE` declaration, the path is stored and processing
continues. A `TRACK` declaration will use the previously defined path,
and if a previous track had been started, append that previous track to
the list.

This also builds `sotn-disk` using the local repository instead of
pulling the latest commit from GitHub. The target depends on `sotn-disk`
sources and will rebuild as necessary (or with `make
~/go/bin/sotn-disk`).

As an aside,
[pull/232](https://github.com/Xeeynamo/sotn-decomp/pull/232) ran into
this same error, but fixes in a slightly different way that leaves side
effects that may make supporting things like `INDEX` (for extracting the
placeholder audio, for example) more error prone in the future.

Co-authored-by: Jonathan Hohle <jon@ttkb.co>
2024-05-14 19:59:56 +01:00
..
iso9660 Patch DRA stages when rebuilding the disk image 2023-02-21 11:20:04 +00:00
cue.go Support Single BIN CUE Files (#1127) 2024-05-14 19:59:56 +01:00
extract.go Add tool to extract the game image 2022-12-26 20:37:34 +00:00
go.mod Fix sotn-disk when pulled from GitHub 2023-01-01 21:04:55 +00:00
list.go Creates a new game image based on built binaries (#34) 2023-01-01 20:49:12 +00:00
main.go sotn-disk: show error when the command is not recognised 2023-01-24 02:08:52 +00:00
make.go Create CUE and BIN in the same folder 2023-01-02 10:15:50 +00:00
patch.go Patch DRA stages when rebuilding the disk image 2023-02-21 11:20:04 +00:00
ps_logo.go Creates a new game image based on built binaries (#34) 2023-01-01 20:49:12 +00:00