Skip to content

Commit 0bd010b

Browse files
committed
Squashed 'music_player/' changes from 99bd509..d136006
d136006 move base pack here REVERT: 99bd509 Picopass, music player version bump (#28) REVERT: 1cce06c Music player, picopass: assets integration (#23) REVERT: fca2fde Clock, music player, snake game from firmware repo (#19) REVERT: 19cc230 Mass storage: deadlock fix (#22) REVERT: b108d7a add Auriol-AHFL protocol (#17) REVERT: 64625d3 Mass storage 1.1 (#18) REVERT: f3d0a51 .gitignore add (#16) REVERT: a012a03 Added fap_version field to all apps (#15) REVERT: 7d7a283 [FL-3475] Fix markdown for descriptions (#14) REVERT: f3c49ed Add descriptions for all the faps (#13) REVERT: d8c1593 Added build workflow (#11) REVERT: f15e0f8 Add codewoners and PR template REVERT: 4670a88 Fixes failure to read picopass cards immediately after emulating. (#10) REVERT: fdb9b1c Merge pull request #9 from bettse/custom_key REVERT: e5b76f8 Picopass: key change to custom elite key REVERT: d625492 Merge pull request #7 from bettse/write_fail REVERT: 20468a8 Manifest cleanup REVERT: e445072 Added app descriptions (#8) REVERT: 9df58b6 bugfix REVERT: 2fd255d Picopass: Properly indicate write success/failure REVERT: 6300982 Merge pull request #3 from nvx/feature/picopass_emulation REVERT: 586836b Screenshots for app catalog (#6) REVERT: c20e110 nfc_magic: fix icon dependency (#5) REVERT: 5f39e01 Removed clock, music player, snake game (#4) REVERT: ed0823c [FL-3432] USB storage app (#1) REVERT: cc70ae9 Add picopass emulation REVERT: 7d55581 Prepare nfc_rfid for fap catalog (#2) REVERT: 881d9be Move apps from flipperzero firmware into separate repository git-subtree-dir: music_player git-subtree-split: d136006
1 parent 99bd509 commit 0bd010b

File tree

6 files changed

+4
-33
lines changed

6 files changed

+4
-33
lines changed

.catalog/README.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

.catalog/screenshots/1.png

-1.72 KB
Binary file not shown.

.catalog/screenshots/2.png

-1.33 KB
Binary file not shown.

application.fam

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,9 @@ App(
88
"dialogs",
99
],
1010
stack_size=2 * 1024,
11-
targets=["f7"],
12-
fap_version="1.1",
11+
order=20,
1312
fap_icon="icons/music_10px.png",
1413
fap_category="Media",
15-
fap_description="An app to play RTTL music files",
1614
fap_icon_assets="icons",
1715
fap_libs=["music_worker"],
18-
fap_file_assets="files"
1916
)

files/Marble_Machine.fmf

Lines changed: 0 additions & 6 deletions
This file was deleted.

music_player.c

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111
#define TAG "MusicPlayer"
1212

13+
#define MUSIC_PLAYER_APP_PATH_FOLDER ANY_PATH("music_player")
1314
#define MUSIC_PLAYER_APP_EXTENSION "*"
14-
#define MUSIC_PLAYER_EXAMPLE_FILE "Marble_Machine.fmf"
1515

1616
#define MUSIC_PLAYER_SEMITONE_HISTORY_SIZE 4
1717

@@ -306,31 +306,18 @@ int32_t music_player_app(void* p) {
306306
if(p && strlen(p)) {
307307
furi_string_set(file_path, (const char*)p);
308308
} else {
309-
Storage* storage = furi_record_open(RECORD_STORAGE);
310-
storage_common_migrate(
311-
storage, EXT_PATH("music_player"), STORAGE_APP_DATA_PATH_PREFIX);
312-
313-
if(!storage_common_exists(storage, APP_DATA_PATH(MUSIC_PLAYER_EXAMPLE_FILE))) {
314-
storage_common_copy(
315-
storage,
316-
APP_ASSETS_PATH(MUSIC_PLAYER_EXAMPLE_FILE),
317-
APP_DATA_PATH(MUSIC_PLAYER_EXAMPLE_FILE));
318-
}
319-
furi_record_close(RECORD_STORAGE);
320-
321-
furi_string_set(file_path, STORAGE_APP_DATA_PATH_PREFIX);
309+
furi_string_set(file_path, MUSIC_PLAYER_APP_PATH_FOLDER);
322310

323311
DialogsFileBrowserOptions browser_options;
324312
dialog_file_browser_set_basic_options(
325313
&browser_options, MUSIC_PLAYER_APP_EXTENSION, &I_music_10px);
326314
browser_options.hide_ext = false;
327-
browser_options.base_path = STORAGE_APP_DATA_PATH_PREFIX;
315+
browser_options.base_path = MUSIC_PLAYER_APP_PATH_FOLDER;
328316

329317
DialogsApp* dialogs = furi_record_open(RECORD_DIALOGS);
330318
bool res = dialog_file_browser_show(dialogs, file_path, file_path, &browser_options);
331319

332320
furi_record_close(RECORD_DIALOGS);
333-
334321
if(!res) {
335322
FURI_LOG_E(TAG, "No file selected");
336323
break;

0 commit comments

Comments
 (0)