Commit Graph

11 Commits

Author SHA1 Message Date
Zorchenhimer 457d8106ef
Add boot file and game type to output 2025-12-20 15:24:15 -05:00
Zorchenhimer 558662f7cf
Fix output directory creation
I broke this when adding --output.  It should be fixed now.
2025-12-20 15:22:36 -05:00
Zorchenhimer 6f14cd7c06
[fdsextract] Add --output option
Currently only available when extracting single files.  Will use the
given filename as the output name instead of constructing one.

TODO: Make this value a template that can be used with multiple files.
2025-12-18 21:38:02 -05:00
Zorchenhimer bf2afab07d
Moved --extract to its own utility
fdsextract now handles all extraction stuff.  This utility also has more
functionality.  There are options to extract a single side, a single
file on a single side, and an address range from a single file from a
single side.  Files and sides are 0-indexed.
2025-12-12 23:38:23 -05:00
Zorchenhimer c2a6fc7fa3
Add the 0x05 block type; Remove --extract from fdslist
- Block type 0x05 is some weird test pattern thing???
- Removed --extract from the fdslist utility
2025-12-12 23:37:13 -05:00
Zorchenhimer ccdb696c2d
Move the .fds check to ReadRomFile()
The filename is already beeing passed into ReadRomFile(), so just check
it in there instead of requiring IsFds to be passed separately.
2025-12-07 20:52:57 -05:00
Zorchenhimer e1b9e195cb
Fix module path 2025-12-07 20:50:31 -05:00
Zorchenhimer 172e1211c5
Add ReadRomFile
This function combines ReadRomBlocks() and RomFromBlocks() into a single
function.  The other two functions still exist.
2025-12-07 20:48:38 -05:00
Zorchenhimer cc0e79c72b
Add --extract
Extract all files in the rom to the given directory.  Filename structure
is ###_Side_FileNumber_FileId.
2025-12-07 20:28:11 -05:00
Zorchenhimer 4ab973c6b2
Rework Rom struct; Print more info
- Reworked the Rom struct to make more sense in an emulation
  environment.  Currently, cannot convert this to a .fds file, but maybe
  later.
- Print info using the reworked Rom struct.  More info is printed.
2025-12-07 20:13:29 -05:00
Zorchenhimer 93c056db49
Initial commit
Bare-bones functionality so far.  Lists blocks in a rom with minimal
information.
2025-12-06 14:15:08 -05:00