Storage: Virtual volume label is now set from Image Name

This commit is contained in:
Nick Shaw
2024-04-06 10:04:33 -04:00
parent 7869869fb9
commit aee2120dce
3 changed files with 13 additions and 1 deletions

View File

@@ -156,3 +156,9 @@ size_t storage_open_files_count(StorageData* storage) {
size_t count = StorageFileList_size(storage->files);
return count;
}
const char* storage_file_get_path(File* file, StorageData* storage) {
if(!storage_has_file(file, storage)) return "";
StorageFile* storage_file_ref = storage_get_file(file, storage);
return furi_string_get_cstr(storage_file_ref->path);
}