Commit Graph
4 Commits
Author SHA1 Message Date
Nunuhara Cabbage 576703d141 ini: combine 'var[n] = val' assignments into lists
Create INI_LIST entries from _INI_LIST_ENTRY entries. E.g.

    VolumeValancer[0] = "BGM"
    VolumeValancer[1] = "Sounds"

is equivalent to,

    VolumeValancer = {
        "BGM",
        "Sounds",
    }
2020-03-11 20:36:19 -07:00
Nunuhara Cabbage 4a9b928500 Add ainbuild utility
Tool for reading and rebuilding dumped .ex files. Currently this only
reads a file on stdin then redumps it to stdout.

Also, move tools code into src/tools/
2020-02-20 21:14:13 -08:00
Nunuhara Cabbage ab670bd3a9 aindump: guess filenames if no FNAM section
If the filenames section isn't present, try to guess the filenames from
the functions defined in the file. This works pretty well for most of
the core engine files but gives pretty crappy results for scenario
files.

This feature is primarily intended to be used when dumping the code
section to multiple files (not yet implemented).
2020-02-12 18:09:37 -08:00
Nunuhara Cabbage 4d9de80626 aindump: add JSON output format
Dump everything except the code to a JSON file.

With both the disassembled code and this JSON file in hand, it should be
possible to reconstruct the original AIN file.
2020-01-26 17:09:15 -08:00