Giter Club home page Giter Club logo

gl_rom_decoder's Introduction

ROM Decoder

Decodes Gauntlet Legends Dreamcast DISK.ROM and SIZES.ROM files.

Usage

Place both your DISK.ROM and SIZES.ROM files into the same directory as the scripts, and run rom_decoder.py. Afterwords you should see a out/ folder. You will also see a not_in_archive.txt, which just contains a list of files that weren't packed into the archive or are just missing. (This is normal.)

Structure

SIZES.ROM and DISK.ROM are fairly simple formats. SIZES.ROM contains a total file count, a list of file sizes, offsets (for DISK.ROM) and file paths stored as such:

struct Header{
    uint Count;
}
struct Entry {
    uint Size;
    uint Offset;
    // Relative to the end of entries
    short PathOffsets[4];
};

You then need to loop per each PathOffsets, offset from the end of your Entry list and read the null terminated string. If you reach -1 (or 0xFFFF) in your PathOffsets list then break from the loop.

Once you've read SIZES.ROM, simply load up DISK.ROM. Loop through each Entry, seeking (from the start of the file) to the Offset, and reading until you hit Size.

Credits

Some helper functions are from io_scene_abc, at least for the time being! Research and development by Haekb (HeyThereCoffeee)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.