Skip to content

Commit

Permalink
fix any path for badusb favourites
Browse files Browse the repository at this point in the history
  • Loading branch information
xMasterX committed Aug 17, 2024
1 parent 6a93494 commit a6d0efe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions applications/main/archive/helpers/archive_files.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit a6d0efe

Please sign in to comment.