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 > Problem with Dualis and libfat-nds

#118266 - Massif - Sun Feb 11, 2007 7:11 pm

I am having some problems getting dualis to work when I use the fatInit() method. When I load the rom, Dualis just crashes and exits immediately without any error message. If I remove the fatInit() line, it doesn't crash but then my fopen and other file access methods do not work. I've also tried fatInitDefault() and fatInit() with different arguments, but no luck. Do the .nds file and other files need to be on an actual FAT16 drive? I tried using an old CF card as the drive, but still nothing.

It all works perfectly when I run it on my DS with M3 Lite, but I'd like to speed up my development by testing on an emulator.

#118274 - tepples - Sun Feb 11, 2007 8:03 pm

Have you tried making a reduced build of your app that loads entirely into RAM?
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#118276 - Massif - Sun Feb 11, 2007 8:17 pm

I'm not quite sure what you mean. Do you mean hard coding the contents of the data file into the source? I could do that, but I want to test the same source on dualis as I'm testing on the DS.

#118278 - GPFerror - Sun Feb 11, 2007 8:21 pm

yeah dualis is not compatible with libfat, either you have to use the older gba_nds_fat(fatlib) or use a different emulator.

No$gba and desmume and probably others support libfat with fcsr(fat12) images appended to the .ds.gba file.

Troy(GPF)
http://gpf.dcemu.co.uk

#118279 - tepples - Sun Feb 11, 2007 8:22 pm

Massif wrote:
I'm not quite sure what you mean. Do you mean hard coding the contents of the data file into the source?

Yes, using GBFS+bin2s or something like that.

Quote:
I could do that, but I want to test the same source on dualis as I'm testing on the DS.

While you test and debug the parts of your game engine that do not touch the file system, use the hardcoded assets build on both Dualis and the DS. Add file system support later once you know that everything but the file system stuff is working.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#118283 - Massif - Sun Feb 11, 2007 8:45 pm

I just found another solution. I've temporarily switched to gba_nds_lib for testing. Dualis seems happy with that.