mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-13 12:28:36 -07:00
Small bump in the road
- Update assets and references for new project - Revert DFU image and CLI motd - Remove NSFW text and flag - Remove credits animation (will be replaced with a setting menu soon) - New EvilPortal example HTML and better error message - Initial standalone naming for asset packs and mainmenu apps - File migration fixes/improvements - Remove hotfix workflow
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
#include <toolbox/tar/tar_archive.h>
|
||||
#include <toolbox/crc32_calc.h>
|
||||
|
||||
#define XFWFIRSTBOOT_FLAG_PATH CFG_PATH("xfwfirstboot.flag")
|
||||
#define FIRSTBOOT_FLAG_PATH CFG_PATH("firstboot.flag")
|
||||
|
||||
#define TAG "UpdWorkerBackup"
|
||||
|
||||
@@ -205,15 +205,14 @@ static bool update_task_post_update(UpdateTask* update_task) {
|
||||
update_task_set_progress(update_task, UpdateTaskStageSplashscreenInstall, 0);
|
||||
FuriString* tmp_path;
|
||||
tmp_path = furi_string_alloc_set(update_task->update_path);
|
||||
if(storage_common_stat(update_task->storage, XFWFIRSTBOOT_FLAG_PATH, NULL) ==
|
||||
if(storage_common_stat(update_task->storage, FIRSTBOOT_FLAG_PATH, NULL) ==
|
||||
FSE_NOT_EXIST) {
|
||||
File* file = storage_file_alloc(update_task->storage);
|
||||
if(storage_file_open(
|
||||
file, XFWFIRSTBOOT_FLAG_PATH, FSAM_WRITE, FSOM_CREATE_ALWAYS)) {
|
||||
if(storage_file_open(file, FIRSTBOOT_FLAG_PATH, FSAM_WRITE, FSOM_CREATE_ALWAYS)) {
|
||||
storage_file_close(file);
|
||||
}
|
||||
storage_file_free(file);
|
||||
path_append(tmp_path, "xfwfirstboot.bin");
|
||||
path_append(tmp_path, "firstboot.bin");
|
||||
if(storage_common_stat(
|
||||
update_task->storage, furi_string_get_cstr(tmp_path), NULL) != FSE_OK) {
|
||||
furi_string_set(tmp_path, update_task->update_path);
|
||||
|
||||
@@ -93,13 +93,13 @@ static void updater_main_draw_callback(Canvas* canvas, void* _model) {
|
||||
canvas_draw_icon(canvas, 7, 54, &I_Ok_btn_9x9);
|
||||
canvas_draw_icon(canvas, 75, 55, &I_Pin_back_arrow_10x8);
|
||||
} else {
|
||||
canvas_draw_str_aligned(canvas, 82, 16, AlignCenter, AlignTop, "Xtreme FW");
|
||||
canvas_set_font(canvas, FontSecondary);
|
||||
canvas_draw_str_aligned(canvas, 82, 6, AlignCenter, AlignTop, "Installing");
|
||||
canvas_draw_str_aligned(canvas, 82, 5, AlignCenter, AlignTop, "Installing");
|
||||
canvas_draw_str_aligned(
|
||||
canvas, 64, 51, AlignCenter, AlignTop, furi_string_get_cstr(model->status));
|
||||
canvas_draw_icon(canvas, 4, 5, &I_Updating_32x40);
|
||||
elements_progress_bar(canvas, 42, 29, 80, (float)model->progress / 100);
|
||||
canvas_draw_icon(canvas, 50, 16, &I_Updating_Logo_62x15);
|
||||
elements_progress_bar(canvas, 42, 36, 80, (float)model->progress / 100);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user