mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-11-29 22:49:55 +03:00
fix check [ci skip]
This commit is contained in:
parent
899614fece
commit
8b46e1c202
@ -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"),
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user