mirror of
https://github.com/wiiu-env/libfat.git
synced 2024-11-22 09:59:18 +01:00
Added fatInitDefault to fat.h and libfat.c
This commit is contained in:
parent
3a9b3b5e3a
commit
b540acafed
@ -27,6 +27,12 @@
|
||||
|
||||
2006-07-11 - Chishm
|
||||
* Original release
|
||||
|
||||
2006-07-14
|
||||
* fatInitialise renamed to fatInit
|
||||
|
||||
2006-07-16 - Chishm
|
||||
* Added fatInitDefault
|
||||
*/
|
||||
|
||||
|
||||
@ -51,6 +57,11 @@ setAsDefaultDevice: if true, make this the default device driver for file operat
|
||||
*/
|
||||
bool fatInit (u32 cacheSize, bool setAsDefaultDevice);
|
||||
|
||||
/*
|
||||
Calls fatInit with setAsDefaultDevice = true and cacheSize optimised for the host system.
|
||||
*/
|
||||
bool fatInitDefault (void);
|
||||
|
||||
/*
|
||||
Mount the device specified by partitionNumber
|
||||
PD_DEFAULT is not allowed, use _FAT_partition_setDefaultDevice
|
||||
|
@ -27,6 +27,12 @@
|
||||
|
||||
2006-07-11 - Chishm
|
||||
* Original release
|
||||
|
||||
2006-07-14
|
||||
* fatInitialise renamed to fatInit
|
||||
|
||||
2006-07-16 - Chishm
|
||||
* Added fatInitDefault
|
||||
*/
|
||||
|
||||
|
||||
@ -66,6 +72,11 @@ setAsDefaultDevice: if true, make this the default device driver for file operat
|
||||
*/
|
||||
bool fatInit (u32 cacheSize, bool setAsDefaultDevice);
|
||||
|
||||
/*
|
||||
Calls fatInit with setAsDefaultDevice = true and cacheSize optimised for the host system.
|
||||
*/
|
||||
bool fatInitDefault (void);
|
||||
|
||||
/*
|
||||
Mount the device specified by partitionNumber
|
||||
PD_DEFAULT is not allowed, use _FAT_partition_setDefaultDevice
|
||||
|
@ -27,6 +27,12 @@
|
||||
|
||||
2006-07-11 - Chishm
|
||||
* Original release
|
||||
|
||||
2006-07-14
|
||||
* fatInitialise renamed to fatInit
|
||||
|
||||
2006-07-16 - Chishm
|
||||
* Added fatInitDefault
|
||||
*/
|
||||
|
||||
|
||||
@ -56,6 +62,11 @@ setAsDefaultDevice: if true, make this the default device driver for file operat
|
||||
*/
|
||||
bool fatInit (u32 cacheSize, bool setAsDefaultDevice);
|
||||
|
||||
/*
|
||||
Calls fatInit with setAsDefaultDevice = true and cacheSize optimised for the host system.
|
||||
*/
|
||||
bool fatInitDefault (void);
|
||||
|
||||
/*
|
||||
Mount the device specified by partitionNumber
|
||||
PD_DEFAULT is not allowed, use _FAT_partition_setDefaultDevice
|
||||
|
@ -35,6 +35,10 @@
|
||||
#include "partition.h"
|
||||
#include "fatfile.h"
|
||||
|
||||
#define GBA_DEFAULT_CACHE_PAGES 2
|
||||
#define NDS_DEFAULT_CACHE_PAGES 8
|
||||
|
||||
|
||||
const devoptab_t dotab_fat = {
|
||||
"fat",
|
||||
sizeof (FILE_STRUCT),
|
||||
@ -89,6 +93,14 @@ bool fatInit (u32 cacheSize, bool setAsDefaultDevice) {
|
||||
return true;
|
||||
}
|
||||
|
||||
bool fatInitDefault (void) {
|
||||
#ifdef NDS
|
||||
return fatInit (NDS_DEFAULT_CACHE_PAGES, true);
|
||||
#else
|
||||
return fatInit (GBA_DEFAULT_CACHE_PAGES, true);
|
||||
#endif
|
||||
}
|
||||
|
||||
bool fatMountNormalInterface (PARTITION_INTERFACE partitionNumber, u32 cacheSize) {
|
||||
return _FAT_partition_mount (partitionNumber, cacheSize);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user