Machine-parseable outputs would be a great feature for tools to process the information that is output by Redumper. For example, MPF can parse the existing outputs, though it has to rely on some tricks in order to do so consistently.
The minimum request is to separate out the track hash data into a separate file. Preferably, in order to not break backward compatibility, this could be enabled via a feature flag. The most minimal file would be exactly what is output currently under the dat section of the log. A less minimal example would be following the Logiqx XML definition, which would look like this:
The format of the rom above is already what is output. Given that the header and everything except the individual rom items can be statically defined, it doesn't seem like any external dependencies would be required in order to write this consistently.
If this idea were to be extended to all output image information, then a good example of another project that already does something similar would be Aaru. The outputs from an Aaru dump include a log for all messages and then a separate file called the "CICM Sidecar" that is an XML document containing basically all image metadata. The structure can be seen here (written in C#): https://github.com/aaru-dps/Aaru.CommonTypes/blob/devel/Metadata/cicm.cs
This is just an example of an output that is tailored for Aaru's uses, however. Any custom output, whether it be in XML, JSON, or even something like YAML or INI syntax would be useful for parsing.
Machine-parseable outputs would be a great feature for tools to process the information that is output by Redumper. For example, MPF can parse the existing outputs, though it has to rely on some tricks in order to do so consistently.
The minimum request is to separate out the track hash data into a separate file. Preferably, in order to not break backward compatibility, this could be enabled via a feature flag. The most minimal file would be exactly what is output currently under the
dat
section of the log. A less minimal example would be following the Logiqx XML definition, which would look like this:The format of the
rom
above is already what is output. Given that the header and everything except the individualrom
items can be statically defined, it doesn't seem like any external dependencies would be required in order to write this consistently.If this idea were to be extended to all output image information, then a good example of another project that already does something similar would be Aaru. The outputs from an Aaru dump include a log for all messages and then a separate file called the "CICM Sidecar" that is an XML document containing basically all image metadata. The structure can be seen here (written in C#): https://github.com/aaru-dps/Aaru.CommonTypes/blob/devel/Metadata/cicm.cs
This is just an example of an output that is tailored for Aaru's uses, however. Any custom output, whether it be in XML, JSON, or even something like YAML or INI syntax would be useful for parsing.