mirror of
https://github.com/wiiu-env/libfat.git
synced 2024-11-22 09:59:18 +01:00
fix FAT_setAttr for big endian
This commit is contained in:
parent
d6ac947826
commit
ef7a8748e6
@ -111,7 +111,7 @@ extern void fatGetVolumeLabel (const char* name, char *label);
|
|||||||
Methods to modify DOS File Attributes
|
Methods to modify DOS File Attributes
|
||||||
*/
|
*/
|
||||||
int FAT_getAttr(const char *file);
|
int FAT_getAttr(const char *file);
|
||||||
int FAT_setAttr(const char *file, int attr );
|
int FAT_setAttr(const char *file, uint8_t attr );
|
||||||
|
|
||||||
#define LIBFAT_FEOS_MULTICWD
|
#define LIBFAT_FEOS_MULTICWD
|
||||||
|
|
||||||
|
@ -72,7 +72,7 @@ int FAT_getAttr(const char *file) {
|
|||||||
return dirEntry.entryData[DIR_ENTRY_attributes];
|
return dirEntry.entryData[DIR_ENTRY_attributes];
|
||||||
}
|
}
|
||||||
|
|
||||||
int FAT_setAttr(const char *file, int attr) {
|
int FAT_setAttr(const char *file, uint8_t attr) {
|
||||||
|
|
||||||
// Defines...
|
// Defines...
|
||||||
DIR_ENTRY_POSITION entryEnd;
|
DIR_ENTRY_POSITION entryEnd;
|
||||||
|
Loading…
Reference in New Issue
Block a user