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

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

  1. jordanlp
    OP

    jordanlp GBAtemp Regular

    Member
    152
    0
    Apr 18, 2008
    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

    Curley5959 CCC Member!

    Member
    2,572
    5
    Feb 2, 2008
    Australia
  3. FAST6191

    FAST6191 Techromancer

    pip Reporter
    23,346
    9,144
    Nov 21, 2005
    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

    Curley5959 CCC Member!

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

    jordanlp GBAtemp Regular

    Member
    152
    0
    Apr 18, 2008
    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

    arctic_flame GBAtemp ATMEGA8 Fan

    Member
    2,840
    0
    Nov 4, 2006
    England land
    You will never launch ROMs from a PAlib app without serious hackery.