Dlditool CLI

From DLDIWiki

Jump to: navigation, search

dlditool is a command line tool for patching DLDI files.

[edit] Usage

First, just try the ROM to see if it works with your flash cart. If it does, then great! If not, you'll need to patch it. You'll need two things, a patcher and the appropriate patch for your flash cart.

Extract the patch and patcher to the same directory as the ROM file. Open a command prompt in that directory. Type in:

dlditool <name_of_patch> <rom_file>

Where <name_of_patch> is the name of the patch file (e.g. "mpcf.dldi") and <rom_file> is the name of the ROM (eg "libfat_tests.nds").

You should see something similar to this:

C:\rom_dir\>dlditool mpcf.dldi libfat_tests.nds
Dynamically Linked Disk Interface patch tool by Michael Chisholm (Chishm)

Old driver:          Default (No interface)
New driver:          GBA Movie Player (Compact Flash)

Position in file:    0x000062C0
Position in memory:  0x02000000
Patch base address:  0xBF800000
Relocation offset:   0x428060C0

Patched successfully

Once you have patched the ROM, copy it to your memory card and run it.

[edit] Downloads

Source code is available in the [DevkitPro CVS repository].

A precompiled version of dlditool comes installed as part of DevkitARM, or you can get versions for Windows (version 1.23, compiled by Chishm), MacOS X (version 1.23, compiled by Jan Kampling) and x86 Linux (version 1.24, compiled by rummik).

[edit] Acknowledgements

  • Wintermute - Help with getting DLDI to work, and adding features to dlditool
  • MoonLight - Reading through the MoonShell plugin source was a great starting point
  • Various others on GBAdev.org and #dsdev (irc.blitzed.org) for their comments, suggestions and criticisms
Personal tools