Is it possible to vga patch a GDI dump?

Discussion in 'Sega Dreamcast Development and Research' started by citrus3000psi, Aug 21, 2014.

  1. citrus3000psi

    citrus3000psi Housekeeping, you want towel?

    Joined:
    Nov 8, 2013
    Messages:
    1,051
    Likes Received:
    418
    I know its possible with cdi searching for the JUE string. Is there something similar for a raw gdi?
     
  2. darcagn

    darcagn Site Supporter 2013, Site Supporter 2014

    Joined:
    May 12, 2007
    Messages:
    529
    Likes Received:
    246
    Convert the GDI data tracks from bin to iso using the tools in the ISO Make Pack available on the DreamShell downloads page (http://www.dc-swat.ru/page/dreamshell/)

    Then follow the exact same steps you would for a CDI, on the track03.iso file.
     
  3. -=FamilyGuy=-

    -=FamilyGuy=- Site Supporter 2049

    Joined:
    Mar 3, 2007
    Messages:
    3,034
    Likes Received:
    891
    "The exact same steps you would for a CDI" means writing "1" (aka 0x31 aka 8-bit 49) in track03.iso to offset 61. You can then convert back the iso to bin, or modify the gdi file to use a track03.iso file in 2048 bytes/sector mode.

    You could also simply open the bin with any hex editor, edit the 61th+16 = 77th byte to character "1" (should have been "0" prior), then use the program magiciso to rebuild the sector EDC/ECC (NOT correct it).
     
    Last edited: Aug 21, 2014
  4. citrus3000psi

    citrus3000psi Housekeeping, you want towel?

    Joined:
    Nov 8, 2013
    Messages:
    1,051
    Likes Received:
    418
    I'm unable to open track3 bin in magiciso. It gives me a "Found an invalid directory in the iso file" I've tried multiple games. Any ideas?

    Or how do you do convert the iso back to bin?
     
    Last edited: Aug 22, 2014
  5. darcagn

    darcagn Site Supporter 2013, Site Supporter 2014

    Joined:
    May 12, 2007
    Messages:
    529
    Likes Received:
    246
    Why bother converting back to bin?

    When we (that is, Dumpcast and TOSEC) set the dumping standards for Dreamcast GD-ROM images, we suspected that there were GD-ROMs that had copy protection based upon error correction modifications. That has not been the case, so unfortunately distributing GD-ROMs as 2352-byte sector raw dumps has been kind of a waste (although it has had its advantages in some areas).

    If you used the Optimize GDI script in the ISO Make pack, it will convert your .bin files to .iso as well as change the lines in the .gdi file to specify 2048 bytes per sector instead of 2352. There should be no need to convert back.
     
    citrus3000psi likes this.
  6. citrus3000psi

    citrus3000psi Housekeeping, you want towel?

    Joined:
    Nov 8, 2013
    Messages:
    1,051
    Likes Received:
    418
    thanks darcagn. That worked perfectly!
     
  7. -=FamilyGuy=-

    -=FamilyGuy=- Site Supporter 2049

    Joined:
    Mar 3, 2007
    Messages:
    3,034
    Likes Received:
    891
    I didn't know that the tool you referred to was actually editing the gdi to use 2048 bytes/sector data tracks. Of course then simply using that tool is a better idea.
     
sonicdude10
Draft saved Draft deleted
Insert every image as a...
  1.  0%

Share This Page