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 > How do I use libfat with NO$GBA?

#149504 - Dwedit - Mon Jan 21, 2008 6:36 am

I'm already trying to use the FCSR DLDI patch for the rom, but I'm finding that the filesystem gets overwritten as I load data into malloc'ed memory. How do I see whether FCSR is using a disk image based in RAM, and force it to be in ROM?
_________________
"We are merely sprites that dance at the beck and call of our button pressing overlord."

#149506 - kusma - Mon Jan 21, 2008 9:35 am

I use a ds.gba variant of the executable, so the FCSR-image is put in the emulated slot-2. Tried that?

#149508 - Dwedit - Mon Jan 21, 2008 9:47 am

Tried it, still gets overwritten.
_________________
"We are merely sprites that dance at the beck and call of our button pressing overlord."

#149514 - M3d10n - Mon Jan 21, 2008 1:03 pm

I use the FCSR thing and have no issues whatsoever on both NO$GBA (both .nds and .ds.gba) and Ideas (only .ds.gba).

But I don't do any writing to the filesystem, only reading.

#149643 - Peter - Wed Jan 23, 2008 7:18 am

libfat/DLDI file IO on emulator
_________________
Kind Regards,
Peter

#149656 - Lazy1 - Wed Jan 23, 2008 2:10 pm

I had a similar problem a while ago where no$ would freeze for some unknown reason when using the DLDI driver.
Somehow writes were being allowed and corrupting something, this would cause an exception on the DS but no$gba would just crash.

I think there is a new DLDI somewhere that fixes the write issue, maybe that would work better.

#149660 - Dwedit - Wed Jan 23, 2008 3:43 pm

Basically, I'm getting problems where files seem to disappear after restarting the program.
_________________
"We are merely sprites that dance at the beck and call of our button pressing overlord."

#149679 - M3d10n - Wed Jan 23, 2008 7:51 pm

FCSR saves to SRAM, are you sure the NO$ SRAM is properly setup? Also, I think you can only use 64KB saves.

#149684 - GPFerror - Wed Jan 23, 2008 9:41 pm

M3d10n wrote:
FCSR saves to SRAM, are you sure the NO$ SRAM is properly setup? Also, I think you can only use 64KB saves.


FCSR is supposed to save to SRAM, but there are no existing tools to make the proper image format which requires overlays in the image and my fcsr.dldi driver doesn't implement the write functions, original version had FEATURE_MEDIUM_CANWRITE enabled so that has caused some problems. I just uploaded a fixed version to http://gpf.dcemu.co.uk/ on left nav bar under pc utilities, hopefully someone can upload it the dldi wiki or whereever it stored.

Thanks,
Troy(GPF)