diff options
Diffstat (limited to 'firmware/common')
-rw-r--r-- | firmware/common/disk.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/firmware/common/disk.c b/firmware/common/disk.c index fb6daee174..5a55a3b6ac 100644 --- a/firmware/common/disk.c +++ b/firmware/common/disk.c | |||
@@ -292,3 +292,19 @@ int disk_unmount_all(void) | |||
292 | return unmounted; | 292 | return unmounted; |
293 | #endif /* HAVE_MULTIDRIVE */ | 293 | #endif /* HAVE_MULTIDRIVE */ |
294 | } | 294 | } |
295 | |||
296 | #ifdef HAVE_HOTSWAP | ||
297 | bool volume_removable(int volume) | ||
298 | { | ||
299 | if(vol_drive[volume] == -1) | ||
300 | return false; | ||
301 | return storage_removable(vol_drive[volume]); | ||
302 | } | ||
303 | |||
304 | bool volume_present(int volume) | ||
305 | { | ||
306 | if(vol_drive[volume] == -1) | ||
307 | return false; | ||
308 | return storage_present(vol_drive[volume]); | ||
309 | } | ||
310 | #endif | ||