mirror of
https://github.com/wiiu-env/libfat.git
synced 2024-11-22 09:59:18 +01:00
Add hidden interface to support FeOS implementation of multiple cwd.
This interface grabs the pointer to the cwd cluster. This interface is hidden because it can be very easily used incorrectly. Modifying the cwd cluster value may cause unexpected results, so use at your own risk, which includes a corrupted storage medium.
This commit is contained in:
parent
2aaf2cfd6f
commit
8ae46ee04f
@ -113,6 +113,7 @@ 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, int attr );
|
||||||
|
|
||||||
|
#define LIBFAT_FEOS_MULTICWD
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
@ -429,3 +429,13 @@ void _FAT_partition_writeFSinfo(PARTITION * partition)
|
|||||||
_FAT_disc_writeSectors (partition->disc, partition->fsInfoSector, 1, sectorBuffer);
|
_FAT_disc_writeSectors (partition->disc, partition->fsInfoSector, 1, sectorBuffer);
|
||||||
_FAT_mem_free(sectorBuffer);
|
_FAT_mem_free(sectorBuffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint32_t* _FAT_getCwdClusterPtr(const char* name) {
|
||||||
|
PARTITION *partition = _FAT_partition_getPartitionFromPath(name);
|
||||||
|
|
||||||
|
if (!partition) {
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
return &partition->cwdCluster;
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user