Skip to content
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.

Commit

Permalink
Archive: Open .img in Mass Storage app
Browse files Browse the repository at this point in the history
  • Loading branch information
Willy-JL committed Feb 20, 2024
1 parent 3752393 commit b58bcac
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions applications/main/archive/helpers/archive_browser.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ static const char* known_ext[] = {
[ArchiveFileTypeJS] = ".js",
[ArchiveFileTypeSearch] = "*",
[ArchiveFileTypeUpdateManifest] = ".fuf",
[ArchiveFileTypeDiskImage] = ".img",
[ArchiveFileTypeFolder] = "?",
[ArchiveFileTypeUnknown] = "*",
[ArchiveFileTypeAppOrJs] = ".fap|.js",
Expand Down
1 change: 1 addition & 0 deletions applications/main/archive/helpers/archive_files.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ typedef enum {
ArchiveFileTypeJS,
ArchiveFileTypeSearch,
ArchiveFileTypeUpdateManifest,
ArchiveFileTypeDiskImage,
ArchiveFileTypeFolder,
ArchiveFileTypeUnknown,
ArchiveFileTypeAppOrJs,
Expand Down
2 changes: 2 additions & 0 deletions applications/main/archive/scenes/archive_scene_browser.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ const char* archive_get_flipper_app_name(ArchiveFileTypeEnum file_type) {
return "U2F";
case ArchiveFileTypeUpdateManifest:
return "UpdaterApp";
case ArchiveFileTypeDiskImage:
return EXT_PATH("apps/USB/mass_storage.fap");
case ArchiveFileTypeJS:
return EXT_PATH("apps/assets/js_app.fap");
default:
Expand Down
1 change: 1 addition & 0 deletions applications/main/archive/views/archive_browser_view.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ static const Icon* ArchiveItemIcons[] = {
[ArchiveFileTypeJS] = &I_js_script_10px,
[ArchiveFileTypeSearch] = &I_search_10px,
[ArchiveFileTypeUpdateManifest] = &I_update_10px,
[ArchiveFileTypeDiskImage] = &I_floppydisk_10px,
[ArchiveFileTypeFolder] = &I_dir_10px,
[ArchiveFileTypeUnknown] = &I_unknown_10px,
[ArchiveFileTypeLoading] = &I_loading_10px,
Expand Down
Binary file added assets/icons/Archive/floppydisk_10px.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions targets/f7/api_symbols.csv
Original file line number Diff line number Diff line change
Expand Up @@ -3869,6 +3869,7 @@ Variable,+,I_fahren_hover_24x23,Icon,
Variable,+,I_flash_19x20,Icon,
Variable,+,I_flash_hover_19x20,Icon,
Variable,+,I_flash_text_21x5,Icon,
Variable,+,I_floppydisk_10px,Icon,
Variable,+,I_heat_30x51,Icon,
Variable,+,I_hourglass0_24x24,Icon,
Variable,+,I_hourglass1_24x24,Icon,
Expand Down

0 comments on commit b58bcac

Please sign in to comment.