mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
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:
@@ -33,6 +33,7 @@ static const char* known_ext[] = {
|
||||
[ArchiveFileTypeSubghzRemote] = ".txt",
|
||||
[ArchiveFileTypeInfraredRemote] = ".txt",
|
||||
[ArchiveFileTypeBadKb] = ".txt",
|
||||
[ArchiveFileTypeWAV] = ".wav",
|
||||
[ArchiveFileTypeU2f] = "?",
|
||||
[ArchiveFileTypeApplication] = ".fap",
|
||||
[ArchiveFileTypeJS] = ".js",
|
||||
|
||||
@@ -19,6 +19,7 @@ typedef enum {
|
||||
ArchiveFileTypeSubghzRemote,
|
||||
ArchiveFileTypeInfraredRemote,
|
||||
ArchiveFileTypeBadKb,
|
||||
ArchiveFileTypeWAV,
|
||||
ArchiveFileTypeU2f,
|
||||
ArchiveFileTypeApplication,
|
||||
ArchiveFileTypeJS,
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user