#pragma once #include #include #include #include #include #include #include #include #include #include #include #include "namechanger_custom_event.h" #include "scenes/namechanger_scene.h" #define NAMECHANGER_TEXT_STORE_SIZE 9 #define NAMECHANGER_HEADER "Flipper Name File" #define TAG "NameChanger" typedef struct { SceneManager* scene_manager; ViewDispatcher* view_dispatcher; Gui* gui; Storage* storage; char text_store[NAMECHANGER_TEXT_STORE_SIZE + 1]; FuriString* error; Submenu* submenu; TextInput* text_input; Popup* popup; Widget* widget; } NameChanger; typedef enum { NameChangerViewSubmenu, NameChangerViewTextInput, NameChangerViewPopup, NameChangerViewWidget, } NameChangerView; bool namechanger_make_app_folder(NameChanger* namechanger); bool namechanger_name_read_write(NameChanger* namechanger, char* name, uint8_t mode); void namechanger_text_store_set(NameChanger* namechanger, const char* text, ...); void namechanger_text_store_clear(NameChanger* namechanger);