Page 1 of 1

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

Posted: Mon Oct 25, 2010 7:09 pm
by kvleonhardt
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

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

Posted: Mon Oct 25, 2010 8:44 pm
by fincs
Yes, you just have to use libfilesystem.
Go to devkitPro/examples/nds/filesystem/nitrofs.

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

Posted: Wed Oct 27, 2010 11:10 am
by kvleonhardt
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

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

Posted: Wed Oct 27, 2010 6:38 pm
by fincs
There is. Use mmInitDefault() instead of mmInitDefaultMem() and place the generated soundbank in the filesystem.