Skip to content

Commit 527df31

Browse files
committed
utiliser le dossier badusb au lieu de badkb
déplacer les fichiers utilisateur au démarrage de l'application
1 parent de4b65d commit 527df31

39 files changed

+16
-9
lines changed

applications/debug/file_browser_test/scenes/file_browser_scene_start.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ bool file_browser_scene_start_on_event(void* context, SceneManagerEvent event) {
1919
bool consumed = false;
2020

2121
if(event.type == SceneManagerEventTypeCustom) {
22-
furi_string_set(app->file_path, ANY_PATH("badkb/demo_windows.txt"));
22+
furi_string_set(app->file_path, ANY_PATH("badusb/demo_windows.txt"));
2323
scene_manager_next_scene(app->scene_manager, FileBrowserSceneBrowser);
2424
consumed = true;
2525
} else if(event.type == SceneManagerEventTypeTick) {

applications/external/nrf24mousejacker/mousejacker.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#define TAG "mousejacker"
1919
#define LOGITECH_MAX_CHANNEL 85
2020
#define NRFSNIFF_APP_PATH_FOLDER_ADDRESSES EXT_PATH("apps_data/nrf24sniff/addresses.txt")
21-
#define BADKB_FOLDER EXT_PATH("badkb")
21+
#define BADKB_FOLDER EXT_PATH("badusb")
2222
#define MOUSEJACKER_APP_PATH_EXTENSION ".txt"
2323
#define MAX_ADDRS 100
2424

applications/main/archive/helpers/archive_browser.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ static const char* tab_default_paths[] = {
1414
[ArchiveTabSubGhz] = EXT_PATH("subghz"),
1515
[ArchiveTabLFRFID] = EXT_PATH("lfrfid"),
1616
[ArchiveTabInfrared] = EXT_PATH("infrared"),
17-
[ArchiveTabBadKb] = EXT_PATH("badkb"),
17+
[ArchiveTabBadKb] = EXT_PATH("badusb"),
1818
[ArchiveTabU2f] = "/app:u2f",
1919
[ArchiveTabApplications] = EXT_PATH("apps"),
2020
[ArchiveTabSearch] = "/app:search",

applications/main/bad_kb/bad_kb_app.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ static void bad_kb_app_tick_event_callback(void* context) {
2929
scene_manager_handle_tick_event(app->scene_manager);
3030
}
3131

32-
static void bad_kb_load_settings(BadKbApp* app) {
32+
void bad_kb_load_settings(BadKbApp* app) {
3333
furi_string_reset(app->keyboard_layout);
3434
BadKbConfig* cfg = &app->config;
3535

applications/main/bad_kb/bad_kb_app_i.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,3 +109,5 @@ void bad_kb_conn_reset(BadKbApp* app);
109109
void bad_kb_config_refresh(BadKbApp* app);
110110

111111
void bad_kb_config_adjust(BadKbConfig* cfg);
112+
113+
void bad_kb_load_settings(BadKbApp* app);

applications/main/bad_kb/bad_kb_paths.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#include <storage/storage.h>
44

5-
#define BAD_KB_APP_BASE_FOLDER EXT_PATH("badkb")
5+
#define BAD_KB_APP_BASE_FOLDER EXT_PATH("badusb")
66
#define BAD_KB_KEYS_PATH BAD_KB_APP_BASE_FOLDER "/.badkb.keys"
77
#define BAD_KB_SETTINGS_PATH BAD_KB_APP_BASE_FOLDER "/.badkb.settings"
88
#define BAD_KB_APP_PATH_LAYOUT_FOLDER BAD_KB_APP_BASE_FOLDER "/assets/layouts"

0 commit comments

Comments
 (0)