How to DLDI patch - Linux

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

Feb 3, 2007

How to DLDI patch - Linux by Azimuth at 7:39 PM (12,570 Views / 0 Likes) 9 replies

  1. Azimuth
    OP

    Member Azimuth Chicken Teriyaki Boy!

    Joined:
    Feb 23, 2006
    Messages:
    637
    Country:
    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

    Newcomer axx Newbie

    Joined:
    Feb 8, 2007
    Messages:
    1
    Country:
    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

    Newcomer nicko_510 Newbie

    Joined:
    Apr 30, 2007
    Messages:
    1
    Country:
    France
    Hello.
    I don't understand, but it doesn't work with me [​IMG]
    [​IMG]


    Ubuntu feisty, M3ds simply
     
  4. KDH

    Member KDH GBAtemp Regular

    Joined:
    Apr 26, 2007
    Messages:
    241
    Location:
    Kansas
    Country:
    United States
    See if that works for you.
     
  5. Azimuth
    OP

    Member Azimuth Chicken Teriyaki Boy!

    Joined:
    Feb 23, 2006
    Messages:
    637
    Country:
    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

    Newcomer foobar Member

    Joined:
    Nov 13, 2006
    Messages:
    20
    Country:
    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

    Member KDH GBAtemp Regular

    Joined:
    Apr 26, 2007
    Messages:
    241
    Location:
    Kansas
    Country:
    United States
    @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

    Member James Kudo GBAtemp Regular

    Joined:
    May 26, 2006
    Messages:
    158
    Country:
    United States
    Thanks! This worked great for me.
     
  9. flashermac

    Member flashermac GBAtemp Fan

    Joined:
    Oct 25, 2002
    Messages:
    394
    Country:
    United Kingdom
    Thanks a lot mate,

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

    Cheers
    |fmc|
     
  10. ZeWarrior

    Member ZeWarrior TheWarrior

    Joined:
    Jul 2, 2007
    Messages:
    2,810
    Country:
    Brazil
    What Linux Distro are using in this example/How-To?
     

Share This Page