Page 1 of 1

No$GBA and Desmume don't like FAT?

Posted: Mon Aug 02, 2010 10:37 am
by relminator
This:
http://rel.betterwebber.com/junk.php?id=113

Saving works perfectly on a real DS but doesn't work on emulators. Any way I can save my patterns on emulators?

Thanks!!!

Re: No$GBA and Desmume don't like FAT?

Posted: Mon Aug 02, 2010 4:46 pm
by elhobbs
I am not 100% sure but I think desmume allows writing using the cflash addon in the gba slot. I think you need to be using a disk image for it to work though.

Re: No$GBA and Desmume don't like FAT?

Posted: Tue Aug 03, 2010 1:37 am
by coreyh2
http://forums.desmume.org/viewtopic.php?id=2062

I got this link from someone on the irc channel. I haven't tested to see if this works. Sounded like only desmume will work with fat. Emulators usually have to use savestates for saving.

Re: No$GBA and Desmume don't like FAT?

Posted: Tue Aug 03, 2010 3:50 am
by zeromus
Post-0.9.6 svn builds will auto-patch your rom with the correct DLDI, which should save you some trouble. DLDI via cflash image should work in 0.9.6 though (mounting a directory won't work, especially not for writing). I know some people use that.

Recently I have devised the notion of syncing a directory to an in-memory fat image two-way. When the rom closed, it would write the in-memory fat image file-by-file out to directory on your PC; when reloading the rom or the emulator it would read the files back in and assemble an in-memory fat image with lots of empty space. There would also be a button in the GUI to force an immediate flush so that you could debug your files without having to restart the rom. It's possible that it could be configured to flush lazily whenever the fat image was written to. This should save people the trouble of having to assemble and decode fat images.

Any feedback about this potential approach is welcome.

Re: No$GBA and Desmume don't like FAT?

Posted: Sat Sep 11, 2010 1:00 am
by zeromus
for the record, writing to cflash (as of r3766) now works when you mount a directory. the changes are lost, however, since the filesystem is all in-memory and is never synched to disk.

Re: No$GBA and Desmume don't like FAT?

Posted: Sun Sep 12, 2010 11:27 am
by Rexhunter99
:/ No$GBA lets me test libFAT if the .nds and emulator are on a FAT/FAT32 Flash Drive USB.

Re: No$GBA and Desmume don't like FAT?

Posted: Sun Sep 12, 2010 6:41 pm
by zeromus
Define this in more detail