mirror of
https://github.com/wiiu-env/libfat.git
synced 2024-11-22 01:49:17 +01:00
fix FAT_setAttr for big endian
This commit is contained in:
parent
d6ac947826
commit
ef7a8748e6
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
fat.h
|
fat.h
|
||||||
Simple functionality for startup, mounting and unmounting of FAT-based devices.
|
Simple functionality for startup, mounting and unmounting of FAT-based devices.
|
||||||
|
|
||||||
Copyright (c) 2006 - 2012
|
Copyright (c) 2006 - 2012
|
||||||
Michael "Chishm" Chisholm
|
Michael "Chishm" Chisholm
|
||||||
Dave "WinterMute" Murphy
|
Dave "WinterMute" Murphy
|
||||||
@ -73,7 +73,7 @@ extern bool fatInitDefault (void);
|
|||||||
/*
|
/*
|
||||||
Mount the device pointed to by interface, and set up a devoptab entry for it as "name:".
|
Mount the device pointed to by interface, and set up a devoptab entry for it as "name:".
|
||||||
You can then access the filesystem using "name:/".
|
You can then access the filesystem using "name:/".
|
||||||
This will mount the active partition or the first valid partition on the disc,
|
This will mount the active partition or the first valid partition on the disc,
|
||||||
and will use a cache size optimized for the host system.
|
and will use a cache size optimized for the host system.
|
||||||
*/
|
*/
|
||||||
extern bool fatMountSimple (const char* name, const DISC_INTERFACE* interface);
|
extern bool fatMountSimple (const char* name, const DISC_INTERFACE* interface);
|
||||||
@ -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
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ bool _FAT_findEntry(const char *path, DIR_ENTRY *dirEntry) {
|
|||||||
|
|
||||||
// Check Partition
|
// Check Partition
|
||||||
if( !partition )
|
if( !partition )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Move the path pointer to the start of the actual path
|
// Move the path pointer to the start of the actual path
|
||||||
if (strchr (path, ':') != NULL) {
|
if (strchr (path, ':') != NULL) {
|
||||||
@ -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