Support Cross Remote in Favorites/Archive

This commit is contained in:
Willy-JL
2025-03-01 03:01:58 +00:00
parent 372038c0d3
commit 1ceaeb5690
6 changed files with 6 additions and 0 deletions

View File

@@ -36,6 +36,7 @@ static const char* known_ext[] = {
[ArchiveFileTypeBadUsb] = ".txt",
[ArchiveFileTypeWAV] = ".wav",
[ArchiveFileTypeMag] = ".mag",
[ArchiveFileTypeCrossRemote] = ".xr",
[ArchiveFileTypeU2f] = "?",
[ArchiveFileTypeApplication] = ".fap",
[ArchiveFileTypeJS] = ".js",

View File

@@ -21,6 +21,7 @@ typedef enum {
ArchiveFileTypeBadUsb,
ArchiveFileTypeWAV,
ArchiveFileTypeMag,
ArchiveFileTypeCrossRemote,
ArchiveFileTypeU2f,
ArchiveFileTypeApplication,
ArchiveFileTypeJS,

View File

@@ -35,6 +35,8 @@ const char* archive_get_flipper_app_name(ArchiveFileTypeEnum file_type) {
return EXT_PATH("apps/Media/wav_player.fap");
case ArchiveFileTypeMag:
return EXT_PATH("apps/GPIO/magspoof.fap");
case ArchiveFileTypeCrossRemote:
return EXT_PATH("apps/Infrared/xremote.fap");
case ArchiveFileTypeU2f:
return "U2F";
case ArchiveFileTypeUpdateManifest:

View File

@@ -36,6 +36,7 @@ static const Icon* ArchiveItemIcons[] = {
[ArchiveFileTypeBadUsb] = &I_badusb_10px,
[ArchiveFileTypeWAV] = &I_music_10px,
[ArchiveFileTypeMag] = &I_mag_card_10px,
[ArchiveFileTypeCrossRemote] = &I_xremote_10px,
[ArchiveFileTypeU2f] = &I_u2f_10px,
[ArchiveFileTypeApplication] = &I_Apps_10px,
[ArchiveFileTypeJS] = &I_js_script_10px,

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

View File

@@ -4218,6 +4218,7 @@ Variable,+,I_volup_24x21,const Icon,
Variable,+,I_volup_hover_24x21,const Icon,
Variable,+,I_white_19x20,const Icon,
Variable,+,I_white_hover_19x20,const Icon,
Variable,+,I_xremote_10px,const Icon,
Variable,-,MSIRangeTable,const uint32_t[16],
Variable,-,SmpsPrescalerTable,const uint32_t[4][6],
Variable,+,SystemCoreClock,uint32_t,
1 entry status name type params
4218 Variable + I_volup_hover_24x21 const Icon
4219 Variable + I_white_19x20 const Icon
4220 Variable + I_white_hover_19x20 const Icon
4221 Variable + I_xremote_10px const Icon
4222 Variable - MSIRangeTable const uint32_t[16]
4223 Variable - SmpsPrescalerTable const uint32_t[4][6]
4224 Variable + SystemCoreClock uint32_t