mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-13 03:58:36 -07:00
Merge branch 'dev' of https://github.com/flipperdevices/flipperzero-firmware into xfw-dev
This commit is contained in:
@@ -624,6 +624,16 @@ static FS_Error storage_ext_common_fs_info(
|
||||
#endif
|
||||
}
|
||||
|
||||
static bool storage_ext_common_equivalent_path(const char* path1, const char* path2) {
|
||||
#ifdef FURI_RAM_EXEC
|
||||
UNUSED(path1);
|
||||
UNUSED(path2);
|
||||
return false;
|
||||
#else
|
||||
return strcasecmp(path1, path2) == 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
/******************* Init Storage *******************/
|
||||
static const FS_Api fs_api = {
|
||||
.file =
|
||||
@@ -654,6 +664,7 @@ static const FS_Api fs_api = {
|
||||
.remove = storage_ext_common_remove,
|
||||
.rename = storage_ext_common_rename,
|
||||
.fs_info = storage_ext_common_fs_info,
|
||||
.equivalent_path = storage_ext_common_equivalent_path,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@@ -701,6 +701,10 @@ static FS_Error storage_int_common_fs_info(
|
||||
return storage_int_parse_error(result);
|
||||
}
|
||||
|
||||
static bool storage_int_common_equivalent_path(const char* path1, const char* path2) {
|
||||
return strcmp(path1, path2) == 0;
|
||||
}
|
||||
|
||||
/******************* Init Storage *******************/
|
||||
static const FS_Api fs_api = {
|
||||
.file =
|
||||
@@ -731,6 +735,7 @@ static const FS_Api fs_api = {
|
||||
.remove = storage_int_common_remove,
|
||||
.rename = storage_int_common_rename,
|
||||
.fs_info = storage_int_common_fs_info,
|
||||
.equivalent_path = storage_int_common_equivalent_path,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user