Skip to content

romh-acking/fdsbuilderc-sharp

Repository files navigation

FDSBuilder C# Edition

About

picture

This program is an open source option / replacement to "FDS Expander", "FDS Builder, Sequential Version", and "FDS Builder, ID version" by KingMike.

Programmed by FCandChill.

Program Parameters

  • expand
    • This parameter indicates you want to expand the files of your FDS disk image file. The program simply adds X number of bytes to the end of your file.
    • After this parameter, include the path to the file with the information to expand your file. Here's a sample of one:
[
  [
    {
      "fileNumber": 4,
      "bytesToAdd": 348
    },
    {
      "fileNumber": 7,
      "bytesToAdd": 512
    }
  ],
  [
    {
      "fileNumber": 0,
      "bytesToAdd": 83
    },
    {
      "fileNumber": 1,
      "bytesToAdd": 256
    }
  ]
]

See the program's help output for more details.

Example scripts

Put these in a .bat file.

Extraction example

Extract FDS files from a FDS disk image.

::Disk Image
set baseImage=roms\diskImage.fds

::Folders
set projectFolder=C:\Project Folder
set FDSBuilderFolder=C:\FDS Builder Folder

cd "%projectFolder%"

:: FDS Builder
"%FDSBuilderFolder%\FDSBuilderC-Sharp.exe" ^
--inputDiskImage "%projectFolder%\%baseImage%" ^
--extract ^
--extractDirectory "%projectFolder%\disks\original"

Merge example

Merge FDS disk images files after you extracted them:

::Roms
set baseImage=roms\rom.fds
set moddedImage=new.fds

::Folders
set projectFolder=C:\Project Folder
set FDSBuilderFolder=C:\FDS Builder Folder

cd "%projectFolder%"

:: FDS Builder
"%FDSBuilderFolder%\FDSBuilderC-Sharp.exe"
--inputDiskImage "%projectFolder%\%baseImage%" ^
--outputDiskImage "%projectFolder%\%moddedImage%" ^
--merge ^
--diskDirectory "%projectFolder%\disks\patched"

Expand example

::Roms
set baseImage=roms\rom.fds
set moddedImage=new.fds

::Folders
set projectFolder=C:\Project Folder
set FDSBuilderFolder=C:\FDS Builder Folder

cd "%projectFolder%"

::Expand FDS rom
"%FDSBuilderFolder%\FDSBuilderC-Sharp.exe" ^
--inputDiskImage "%projectFolder%\%baseImage%" ^
--outputDiskImage "%projectFolder%\%moddedImage%" ^
--expand "%projectFolder%\expansion.json"

References

About

Famicom Disk System file extractor, expander, and merger.

Resources

License

Stars

Watchers

Forks

Languages