mirror of
https://github.com/wiiu-env/libfat.git
synced 2024-11-26 03:44:15 +01:00
add new elements for devkitARM r29, use internal deallocaters
This commit is contained in:
parent
cc78aaf803
commit
5d0cd6bc7c
@ -61,7 +61,9 @@ static const devoptab_t dotab_fat = {
|
|||||||
_FAT_statvfs_r,
|
_FAT_statvfs_r,
|
||||||
_FAT_ftruncate_r,
|
_FAT_ftruncate_r,
|
||||||
_FAT_fsync_r,
|
_FAT_fsync_r,
|
||||||
NULL /* Device data */
|
NULL, /* Device data */
|
||||||
|
NULL,
|
||||||
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
bool fatMount (const char* name, const DISC_INTERFACE* interface, sec_t startSector, uint32_t cacheSize, uint32_t SectorsPerPage) {
|
bool fatMount (const char* name, const DISC_INTERFACE* interface, sec_t startSector, uint32_t cacheSize, uint32_t SectorsPerPage) {
|
||||||
@ -220,11 +222,11 @@ void fatGetVolumeLabel (const char* name, char *label) {
|
|||||||
|
|
||||||
for(i=0;buf[i]!='\0' && buf[i]!=':';i++);
|
for(i=0;buf[i]!='\0' && buf[i]!=':';i++);
|
||||||
if (!devops || strncasecmp(buf,devops->name,i)) {
|
if (!devops || strncasecmp(buf,devops->name,i)) {
|
||||||
free(buf);
|
_FAT_mem_free(buf);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
free(buf);
|
_FAT_mem_free(buf);
|
||||||
|
|
||||||
// Perform a quick check to make sure we're dealing with a libfat controlled device
|
// Perform a quick check to make sure we're dealing with a libfat controlled device
|
||||||
if (devops->open_r != dotab_fat.open_r) {
|
if (devops->open_r != dotab_fat.open_r) {
|
||||||
|
Loading…
Reference in New Issue
Block a user