Magspoof move folder and add example files

This commit is contained in:
Willy-JL
2023-08-04 19:58:56 +02:00
parent 299ab3e89b
commit 95a6dae54a
7 changed files with 21 additions and 15 deletions

View File

@@ -168,8 +168,6 @@ int32_t mag_app(void* p) {
Mag* mag = mag_alloc();
UNUSED(p);
mag_make_app_folder(mag);
view_dispatcher_attach_to_gui(mag->view_dispatcher, mag->gui, ViewDispatcherTypeFullscreen);
scene_manager_next_scene(mag->scene_manager, MagSceneStart);
@@ -180,14 +178,6 @@ int32_t mag_app(void* p) {
return 0;
}
void mag_make_app_folder(Mag* mag) {
furi_assert(mag);
if(!storage_simply_mkdir(mag->storage, MAG_APP_FOLDER)) {
dialog_message_show_storage_error(mag->dialogs, "Cannot create\napp folder");
}
}
void mag_text_store_set(Mag* mag, const char* text, ...) {
furi_assert(mag);
va_list args;