From 8b46e1c202c5ce0655480af7ef9e9a716a534c79 Mon Sep 17 00:00:00 2001 From: MX <10697207+xMasterX@users.noreply.github.com> Date: Fri, 14 Jun 2024 19:38:50 +0300 Subject: [PATCH] fix check [ci skip] --- applications/main/archive/helpers/archive_browser.h | 2 +- applications/main/archive/helpers/archive_files.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/applications/main/archive/helpers/archive_browser.h b/applications/main/archive/helpers/archive_browser.h index 807ac268b..37c05da30 100644 --- a/applications/main/archive/helpers/archive_browser.h +++ b/applications/main/archive/helpers/archive_browser.h @@ -12,7 +12,7 @@ static const char* tab_default_paths[] = { [ArchiveTabIButton] = ANY_PATH("ibutton"), [ArchiveTabNFC] = ANY_PATH("nfc"), [ArchiveTabSubGhz] = ANY_PATH("subghz"), - [ArchiveTabSubGhzRemote] = ANY_PATH("subghz_remote"), + [ArchiveTabSubGhzRemote] = EXT_PATH("subghz_remote"), [ArchiveTabLFRFID] = ANY_PATH("lfrfid"), [ArchiveTabInfrared] = ANY_PATH("infrared"), [ArchiveTabBadUsb] = ANY_PATH("badusb"), diff --git a/applications/main/archive/helpers/archive_files.c b/applications/main/archive/helpers/archive_files.c index 67d636581..3684fe643 100644 --- a/applications/main/archive/helpers/archive_files.c +++ b/applications/main/archive/helpers/archive_files.c @@ -22,8 +22,8 @@ void archive_set_file_type(ArchiveFile_t* file, const char* path, bool is_folder file->type = ArchiveFileTypeBadUsb; return; // *.txt file is a BadUSB script only if it is in BadUSB folder } - if(furi_string_search( - file->path, archive_get_default_path(ArchiveTabSubGhzRemote)) == 0) { + if((furi_string_search(file->path, EXT_PATH("subghz_remote")) == 0) || + (furi_string_search(file->path, ANY_PATH("subghz_remote")) == 0)) { file->type = ArchiveFileTypeSubGhzRemote; return; // *.txt file is a SubRem map file only if it is in SubRem folder }