No$GBA and Desmume don't like FAT?

Post Reply
relminator
Posts: 84
Joined: Sun Apr 11, 2010 10:43 am

No$GBA and Desmume don't like FAT?

Post by relminator » Mon Aug 02, 2010 10:37 am

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!!!

elhobbs
Posts: 358
Joined: Thu Jul 02, 2009 1:19 pm

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

Post by elhobbs » Mon Aug 02, 2010 4:46 pm

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.

coreyh2
Posts: 33
Joined: Tue Feb 02, 2010 12:43 am

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

Post by coreyh2 » Tue Aug 03, 2010 1:37 am

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.

zeromus
Posts: 212
Joined: Wed Mar 31, 2010 6:05 pm

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

Post by zeromus » Tue Aug 03, 2010 3:50 am

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.

zeromus
Posts: 212
Joined: Wed Mar 31, 2010 6:05 pm

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

Post by zeromus » Sat Sep 11, 2010 1:00 am

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.

Rexhunter99
Posts: 23
Joined: Thu Sep 09, 2010 1:28 pm
Location: Australia
Contact:

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

Post by Rexhunter99 » Sun Sep 12, 2010 11:27 am

:/ No$GBA lets me test libFAT if the .nds and emulator are on a FAT/FAT32 Flash Drive USB.
Move over Mario... and cruise by Crash... Croc Rocks!
It's a serious adventure 3D platformer for all retro gamers to drool over =D

zeromus
Posts: 212
Joined: Wed Mar 31, 2010 6:05 pm

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

Post by zeromus » Sun Sep 12, 2010 6:41 pm

Define this in more detail

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests