How to DLDI patch - Linux

Discussion in 'NDS - Flashcarts and Accessories' started by Azimuth, Feb 3, 2007.

  1. Azimuth
    OP

    Azimuth Chicken Teriyaki Boy!

    Member
    637
    2
    Feb 23, 2006
    Canada
    Heres another small guide to help all those who use Linux and who dont have the time to read through the various readme files included with the patcher.

    Grab the patching software and the patch for your flashcart from here

    Extract the patching software and the patch and place them in one folder

    Now place the .nds file you want to patch in the same folder.

    [​IMG]

    Open up the terminal

    go to the folder we just created: cd ~/folder containing files
    Execute program: ./dlditool ./Your Cart.dldi ./Your NDS File.nds

    This should be the final result( i patched scummvm-b with g6fl.dldi)

    [​IMG]

    Note: There is a t parameter that can be added to patch specific extensions such as .ds.gba, this is useless
    since the patcher auto-detects the extension and the patches the file accordingly

    it takes 2 secs to patch a file on average

    Hope this helped you, id like to here your feedback
     
  2. axx

    axx Newbie

    Newcomer
    1
    0
    Feb 8, 2007
    France
    the patching seems to work fine, but even though I'm using sclt.dldi as a patch, my .nds file still won't launch.. frustrating

    very neat guide though! [​IMG]
     
  3. nicko_510

    nicko_510 Newbie

    Newcomer
    1
    0
    Apr 30, 2007
    France
    Hello.
    I don't understand, but it doesn't work with me [​IMG]
    [​IMG]


    Ubuntu feisty, M3ds simply
     
  4. KDH

    KDH GBAtemp Regular

    Member
    241
    29
    Apr 26, 2007
    United States
    Kansas
    See if that works for you.
     
  5. Azimuth
    OP

    Azimuth Chicken Teriyaki Boy!

    Member
    637
    2
    Feb 23, 2006
    Canada
    @KDH

    an easier method:

    extract dldi tool to desktop,
    chmod +x /home/user/Desktop/dldi
    su
    cp /home/user/Desktop/dldi /usr/bin/
    now just type dldi to execute dldi in bash

    this is a bit risky because you login as root. I see no need to do this unless you use the patcher a lot.
     
  6. foobar

    foobar Member

    Newcomer
    20
    0
    Nov 13, 2006
    I seem to remember a Really Good Reason? for being careful of the permissions set on files in /usr/bin

    You definitely want to make root the owner and group for these files, and set permissions so that only root can write to them. Otherwise another user could just overwrite that file with, say, a script containing "rm -rf ~/".

    chmod 755 filename
    sudo chown root filename
    sudo chgrp root filename
     
  7. KDH

    KDH GBAtemp Regular

    Member
    241
    29
    Apr 26, 2007
    United States
    Kansas
    @Azimuth

    True, it is easier, assuming that a person using the method I posted happens to be using a distro that doesn't already have

    Code:
    # set PATH so it includes user's private bin if it exists
    if [ -d ~/bin ]; then
    Â ÂPATH=~/bin:"${PATH}"
    fi
    in ~/.bashrc or ~/.bash_profile by default, or they haven't already added it themselves for another reason.

    Both methods have the same end result, as you said, so its just personal preference. I prefer to keep programs that only I will use in my own ~/bin.
     
  8. James Kudo

    James Kudo GBAtemp Regular

    Member
    158
    0
    May 26, 2006
    United States
    Thanks! This worked great for me.
     
  9. flashermac

    flashermac GBAtemp Fan

    Member
    394
    0
    Oct 25, 2002
    Thanks a lot mate,

    I'm a bit of a newb to linux, but this helped a lot.

    Cheers
    |fmc|
     
  10. ZeWarrior

    ZeWarrior TheWarrior

    Member
    2,810
    1
    Jul 2, 2007
    Brazil
    What Linux Distro are using in this example/How-To?