mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-06-06 01:21:18 -04:00
emunand: Implement folder and file detection (boot0/boot1 now work from SD)
This commit is contained in:
parent
5868e0769a
commit
fe62ab9aed
12 changed files with 198 additions and 159 deletions
|
@ -246,6 +246,19 @@ int fsdev_set_default_device(const char *name) {
|
|||
return ret;
|
||||
}
|
||||
|
||||
int fsdev_is_exfat(const char *name) {
|
||||
fsdev_device_t *device = fsdev_find_device(name);
|
||||
|
||||
if (device != NULL) {
|
||||
if (device->registered) {
|
||||
return ((device->fatfs.fs_type == FS_EXFAT) ? 1 : 0);
|
||||
}
|
||||
}
|
||||
|
||||
errno = ENOENT;
|
||||
return -1;
|
||||
}
|
||||
|
||||
int fsdev_unmount_device(const char *name) {
|
||||
int ret;
|
||||
char drname[40];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue