mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-10 06:54:19 +00:00
fix any path for badusb favourites
This commit is contained in:
parent
6a93494506
commit
a6d0efef83
1 changed files with 2 additions and 2 deletions
|
@ -17,8 +17,8 @@ void archive_set_file_type(ArchiveFile_t* file, const char* path, bool is_folder
|
|||
if((known_ext[i][0] == '?') || (known_ext[i][0] == '*')) continue;
|
||||
if(furi_string_end_withi(file->path, known_ext[i])) {
|
||||
if((i == ArchiveFileTypeBadUsb) || (i == ArchiveFileTypeSubGhzRemote)) {
|
||||
if(furi_string_search(
|
||||
file->path, archive_get_default_path(ArchiveTabBadUsb)) == 0) {
|
||||
if((furi_string_search(file->path, EXT_PATH("badusb")) == 0) ||
|
||||
(furi_string_search(file->path, ANY_PATH("badusb")) == 0)) {
|
||||
file->type = ArchiveFileTypeBadUsb;
|
||||
return; // *.txt file is a BadUSB script only if it is in BadUSB folder
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue