Load a .nds file from palib/C+/C++

Discussion in 'R4 DS' started by jordanlp, Jul 1, 2008.

Jul 1, 2008
  1. jordanlp
    OP

    Member jordanlp GBAtemp Regular

    Joined:
    Apr 18, 2008
    Messages:
    152
    Country:
    United States
    I was going to make a program for my r4, but I need to know how to run a .nds file from palib/C+/C++ when I touch a sprite.

    Please help me!

    You'll find out what the program does near release.
     
  2. Curley5959

    Member Curley5959 CCC Member!

    Joined:
    Feb 2, 2008
    Messages:
    2,572
    Location:
    Australia
    Country:
    Australia
  3. FAST6191

    Reporter FAST6191 Techromancer

    pip
    Joined:
    Nov 21, 2005
    Messages:
    21,719
    Country:
    United Kingdom
    edit: Ignore my sleep deprived prattling.

    Your question confuses me.

    The .nds file is a container (much like elf, exe, whatever) and the parsing data has been around for years:
    http://nocash.emubase.de/gbatek.htm#dscart...roromfilesystem (see also header info a few paragraphs up). Although unusual a simple interrupt could get that done.

    On the other hand you could be asking to almost run the .nds as a dll/overlay (or multitasking I guess) of sorts which is right out (it is the reason soft reset had any work done at all really).

    Failing that the stuff is cart specific in which case I suggest you start with DSOrganize:
    http://www.dragonminded.com/?loc=ndsdev/DSOrganize (the exec_stub stuff).
     
  4. Curley5959

    Member Curley5959 CCC Member!

    Joined:
    Feb 2, 2008
    Messages:
    2,572
    Location:
    Australia
    Country:
    Australia
    Thats a bit more, detailed than mine... Try FAST's!! [​IMG]
     
  5. jordanlp
    OP

    Member jordanlp GBAtemp Regular

    Joined:
    Apr 18, 2008
    Messages:
    152
    Country:
    United States
    I want to make it to where when I touch a sprite it loads a game, like need for speed.
     
  6. arctic_flame

    Member arctic_flame GBAtemp ATMEGA8 Fan

    Joined:
    Nov 4, 2006
    Messages:
    2,840
    Location:
    England land
    Country:
    United Kingdom
    You will never launch ROMs from a PAlib app without serious hackery.
     

Share This Page