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 > Does Libfat write to more than one FAT?

#158859 - Dwedit - Thu Jun 19, 2008 6:06 pm

Do Libfat and gba_nds_fat write to both the Main FAT and the Backup FAT, or just the main fat?
_________________
"We are merely sprites that dance at the beck and call of our button pressing overlord."

#158989 - josath - Mon Jun 23, 2008 7:41 pm

People still use gba_nds_fat? Anyway, I know at one point it only wrote to the main fat, the argument being that it was new code and if it corrupted the fat, you still had the backup FAT. but that was a while ago, it may have been fixed since then.

#159006 - tepples - Tue Jun 24, 2008 3:43 am

josath wrote:
People still use gba_nds_fat?

People still use MoonShell 1.71 and DSOrganize 3.1129.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#159069 - HyperHacker - Wed Jun 25, 2008 3:11 am

Moonshell still uses it? I thought it moved to libFAT a few versions back.
_________________
I'm a PSP hacker now, but I still <3 DS.

#159077 - tepples - Wed Jun 25, 2008 3:46 am

HyperHacker wrote:
Moonshell still uses it? I thought it moved to libFAT a few versions back.

I didn't notice anything about libfat in the English changelog or readme. Then I went and looked at the sources: 7-Zip screenshot
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#159126 - dantheman - Wed Jun 25, 2008 9:48 pm

tepples's link isn't working for me, but from my understanding both Moonshell and DSOrganize adopted the DLDI interface without actually switching to libfat. This is just from memory though, and I could be wrong.

#159137 - tepples - Wed Jun 25, 2008 11:28 pm

dantheman wrote:
tepples's link isn't working for me

It should now. There was a DNS problem, which is being worked around. The pic is a screenshot of MoonShell's source code directory, showing gba_nds_fat files.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#159512 - chishm - Wed Jul 02, 2008 4:05 am

Dwedit wrote:
Do Libfat and gba_nds_fat write to both the Main FAT and the Backup FAT, or just the main fat?

Only the main FAT. There's still the argument for allowing easier recovery from corruption (although much less likely now), plus it's faster. The only reason to write to the backup FAT (that I can think of) is to stop Windows thinking that the disc is corrupt.
_________________
http://chishm.drunkencoders.com
http://dldi.drunkencoders.com