sotn-decomp/tools/sotn-assets/util
Luciano Ciccariello 5a447796d6
Asset handler for palette definition in the header (#1852)
Automates the extraction of `u_long** OVL_EXPORT(cluts)[]` in `assets/`
at extraction time and its code generation in
`src/[boss|st]/palette_def.h`.

This has the advantage that now palettes can be loaded and modified
externally, change in size and external tools has now context on the
palette order and where in the VRAM they are located. This also
simplifies `header.c`, getting rid of the whole `PAL_BULK` section.
Creating headers for stages and boss rooms will get progressively
simpler.

The tool is pickier on the size of exported palettes. This allowed me to
find gaps of data for potential unused palette data. I marked them in
the NZ0 YAML.

If there are no concerns and I get an approval, I will extend
`config/assets.us.yaml` to the remaining overlays.
2024-10-31 21:06:06 +00:00
..
utils.go Asset handler for palette definition in the header (#1852) 2024-10-31 21:06:06 +00:00