Impl basic favorite ability for WAVs

Namely just for the sake of favorite-ing the cart lock/unlock. Requires changes to WAV player ext fap, as to be PR'd from the Momentum-Apps repo.
This commit is contained in:
Zachary Weiss
2024-04-17 00:19:03 -04:00
parent 5798446a09
commit 30414e864b
4 changed files with 5 additions and 0 deletions

View File

@@ -33,6 +33,7 @@ static const char* known_ext[] = {
[ArchiveFileTypeSubghzRemote] = ".txt",
[ArchiveFileTypeInfraredRemote] = ".txt",
[ArchiveFileTypeBadKb] = ".txt",
[ArchiveFileTypeWAV] = ".wav",
[ArchiveFileTypeU2f] = "?",
[ArchiveFileTypeApplication] = ".fap",
[ArchiveFileTypeJS] = ".js",

View File

@@ -19,6 +19,7 @@ typedef enum {
ArchiveFileTypeSubghzRemote,
ArchiveFileTypeInfraredRemote,
ArchiveFileTypeBadKb,
ArchiveFileTypeWAV,
ArchiveFileTypeU2f,
ArchiveFileTypeApplication,
ArchiveFileTypeJS,

View File

@@ -32,6 +32,8 @@ const char* archive_get_flipper_app_name(ArchiveFileTypeEnum file_type) {
return EXT_PATH("apps/Infrared/ir_remote.fap");
case ArchiveFileTypeBadKb:
return "Bad KB";
case ArchiveFileTypeWAV:
return EXT_PATH("apps/Media/wav_player.fap");
case ArchiveFileTypeU2f:
return "U2F";
case ArchiveFileTypeUpdateManifest:

View File

@@ -34,6 +34,7 @@ static const Icon* ArchiveItemIcons[] = {
[ArchiveFileTypeSubghzRemote] = &I_subrem_10px,
[ArchiveFileTypeInfraredRemote] = &I_ir_scope_10px,
[ArchiveFileTypeBadKb] = &I_badkb_10px,
[ArchiveFileTypeWAV] = &I_music_10px,
[ArchiveFileTypeU2f] = &I_u2f_10px,
[ArchiveFileTypeApplication] = &I_Apps_10px,
[ArchiveFileTypeJS] = &I_js_script_10px,