gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > nitroFS problem

#169513 - GugloPWN - Sun Jul 19, 2009 11:17 pm

Hi,

I am having a problem getting nitroFS to work. My program works fine in no$gba, but doesn't work with my Acekard 2i on a DSi. The files arent being found on hardware, but are there in the emulator. The read function worked fine with fat, so I don't think theres a problem with that.

A simplified version of my code:

nitroFSInit();
char filename[64] = "myfile.bin";
FILE* file = fopen(filename,"rb");
if(file == NULL) printf("\n%s file not found",filename);

Im getting a lot of "deprecated conversion from string..." but I don't suspect that's an issue. I tried to get my code to work with EFS but had the same problem. Changing filename to "nitrofiles:/myfile.bin" had no effect.

Thanks!

#169514 - SteveH - Sun Jul 19, 2009 11:25 pm

Are you using the homebrew menu from the devkitpro SVN, or the acecard2i application launcher?

#169515 - GugloPWN - Sun Jul 19, 2009 11:38 pm

SteveH wrote:
Are you using the homebrew menu from the devkitpro SVN, or the acecard2i application launcher?


Acekards launcher

#169516 - SteveH - Sun Jul 19, 2009 11:59 pm

Try it with the homebrew menu launcher as the acecard 2i might not provide the arguments that the NDS application needs to use nitroFS.

#169519 - GugloPWN - Mon Jul 20, 2009 12:49 am

I think you're right, because the example for nitroFS in devkitARM fails to init. I don't know how to use svn, I found
http://devkitpro.svn.sourceforge.net/viewvc/devkitpro/trunk/projects/nds/HomebrewMenu/
and downloaded the source manually, but it wouldn't compile (load_bin.h wasnt found), is there a way to get a precompiled binary of the launcher?

#169526 - SteveH - Tue Jul 21, 2009 12:28 am

IIRC there's a link to download the folder as a zip or a gz file near the bottom of that page, that's the link I used to get the files and folder structure.

#169527 - GugloPWN - Tue Jul 21, 2009 12:34 am

I got the Homebrew menu, and it runs my code fine. I hope you like being right Steve.