Add sound and graphics into nds-file instead of using libFAT

support for the ARM toolchain
Post Reply
kvleonhardt
Posts: 10
Joined: Mon Jun 14, 2010 7:31 am

Add sound and graphics into nds-file instead of using libFAT

Post by kvleonhardt » Mon Oct 25, 2010 7:09 pm

Hi

I wonder if it is possible to add extended ROM data to the nds-file, AND ofcause read it from the ARM9 application.

Of cause I could just copy the data directly to the SD card, but it is easyer to distribute and easy to protect the data if the data is embedded to the NDS-file.

It must be possible, as all ROM games must read from the ROM during the game. And the R4/DSTT-homebrew adaptors should be no problem.

My project is close to the 4MB memory limit in t NDS Line, so I have to expand, and I want to do it rigth from beinning.


kvleonhardt

User avatar
fincs
( ͡° ͜ʖ ͡°)
Posts: 94
Joined: Mon Jul 12, 2010 9:45 pm
Location: Seville, Spain
Contact:

Re: Add sound and graphics into nds-file instead of using li

Post by fincs » Mon Oct 25, 2010 8:44 pm

Yes, you just have to use libfilesystem.
Go to devkitPro/examples/nds/filesystem/nitrofs.
Donate to devkitPro - help us stay alive!

kvleonhardt
Posts: 10
Joined: Mon Jun 14, 2010 7:31 am

Re: Add sound and graphics into nds-file instead of using li

Post by kvleonhardt » Wed Oct 27, 2010 11:10 am

Thanks a lot.

It seems simple to use.

And the big question. How do you use sound effects placed on the nitrofs? I am using maxmod, but here all sound is loaded in memory at boot time. :-( There should be an option to maxmod, where to place the data. But thats is a diferent message board . . .

kvleonhardt

User avatar
fincs
( ͡° ͜ʖ ͡°)
Posts: 94
Joined: Mon Jul 12, 2010 9:45 pm
Location: Seville, Spain
Contact:

Re: Add sound and graphics into nds-file instead of using li

Post by fincs » Wed Oct 27, 2010 6:38 pm

There is. Use mmInitDefault() instead of mmInitDefaultMem() and place the generated soundbank in the filesystem.
Donate to devkitPro - help us stay alive!

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests