Skip to content

BuildGDI 2.0 beta 2

Pre-release
Pre-release

Choose a tag to compare

@Sappharad Sappharad released this 29 Aug 03:06

A beta build of the command line "buildgdi" tool for 64-bit Windows machines, with new command line arguments:

The -extract argument can be used to extract files from the high density area of a GDI. Example:

buildgdi -extract -gdi "C:\discs\mygame\disc.gdi" -output "C:\discs\mygame\Data" -ip "C:\discs\mygame\IP.BIN"
This example extracts the GDI at C:\discs\mygame\disc.gdi into the folder C:\discs\mygame\Data\ and also extract IP.BIN to C:\discs\mygame\IP.BIN

The -rebuild argument can be used to rebuild an existing disc image to add or modify files without extracting the original disc first. Example:

buildgdi -rebuild -gdi "D:\discs\mygame\disc.gdi" -data "C:\discs\mygame\translationPatchData" -output "C:\discs\mygame_translated"
Create a copy of the .gdi at D:\discs\mygame\disc.gdi but add the files located in C:\discs\mygame\translationPatchData\ to the disc or replace them if they exist already. Output a new .gdi with all tracks to C:\discs\mygame_translated. Please note that you cannot rebuild a new GDI into the same folder as the source GDI, since the files are being copied from inside the source GDI.

The -date argument can be used to specify the build date on a built image. By default the build date on a GDI is set to the date and time that you build the image. If you always need the same output for the same input (building the same disc twice with the exact same files) then you can override the build date.

Example:
buildgdi -data "D:\discs\mygame\Data" -ip "D\discs\mygame\IP.BIN" -date "2001-12-25 16:15:22" -output "C:\discs\mynewgame"

Changes in Beta 2

  • Some official GD-ROMs have their date fields on files set incorrectly per ISO9660 spec. This caused extraction to FAT32 and ExFAT volumes to fail. The year is supposed to be stored as an 8-bit number representing the number of years since 1900, but these bad discs were storing the low byte of the full 16-bit year instead. This caused the year 2001 to be set as 2109. If a file date is set to over 50 years after the disc authoring date, the year is automatically converted to the correct year during extraction.
  • The modification date on the root directory is now set to the date on the source folder when building a disc
  • Added the -date argument to buildgdi, allowing the disc build date to be overridden.