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 > libfat's "rename" and hidden files

#144707 - PypeBros - Mon Nov 05, 2007 11:08 pm

Hello all.

I was happily using FAT_rename() with the previous DKP release (19), but since i upgraded to dkp20, it seems that any attempt to rename() a file result in a ENOTSUP error. Iiuc, this means the function isn't supported (which is curious since there's a ..._rename() function in fatdir.c, afaik.

So i guess i could try to call directly the libfat's internal function, but i'd like to know if anyone has met the same problem before using such hacks.

Some other -- somewhat related -- question would be to know if someone has ever tried to manipulate the "hidden/system" bits of the FAT filesystem from libfat.

Thanks in advance.
_________________
SEDS: Sprite Edition on DS :: modplayer

#144716 - kusma - Tue Nov 06, 2007 12:06 am

DKP 21 is the most recent release now.

#144719 - wintermute - Tue Nov 06, 2007 12:53 am

Try devkitARM r21.

devkitPPC is currently at r13.
devkitPSP is at r11.

devkitPro, being the umbrella brand under which the toolchains are released, has no version numbers.
_________________
devkitPro - professional toolchains at amateur prices
devkitPro IRC support
Personal Blog

#144740 - PypeBros - Tue Nov 06, 2007 10:28 am

Quote:
try devkitarm 21


Well, honnestly guys, i'd be pleased to try r21, but before i'd like to have a bit more info on whether i get a chance to see my issue solved (or not) with r21 -- hence my post.

It took me weeks to port my software from r19 to r20 a couple of monthes ago, so ...[/quote]
_________________
SEDS: Sprite Edition on DS :: modplayer

#144744 - kusma - Tue Nov 06, 2007 11:56 am

rename() is known to be broken in libnds-releases shipped before devkitARM r21
libfat has no bit to indicate hidden files

edit: sorry, that's devoptab that doesn't have any hidden-bit, not libfat.


Last edited by kusma on Tue Nov 06, 2007 12:11 pm; edited 1 time in total

#144745 - PypeBros - Tue Nov 06, 2007 12:01 pm

thanks.
_________________
SEDS: Sprite Edition on DS :: modplayer