From aa7cb426421b108e36b9c2efea9dcd908d09de5c Mon Sep 17 00:00:00 2001 From: Willy-JL <49810075+Willy-JL@users.noreply.github.com> Date: Sun, 21 May 2023 19:39:25 +0100 Subject: [PATCH] Only load xtreme on normal boot --- lib/xtreme/assets.c | 3 +++ lib/xtreme/settings.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/lib/xtreme/assets.c b/lib/xtreme/assets.c index 4ce378bef..b91d1bfa6 100644 --- a/lib/xtreme/assets.c +++ b/lib/xtreme/assets.c @@ -1,5 +1,6 @@ #include "xtreme.h" #include "private.h" +#include #include #include #include @@ -79,6 +80,8 @@ void ico(const Icon* replace, const char* name, FuriString* path, File* file) { } void XTREME_ASSETS_LOAD() { + if(!furi_hal_is_normal_boot()) return; + const char* pack = XTREME_SETTINGS()->asset_pack; if(pack[0] == '\0') return; diff --git a/lib/xtreme/settings.c b/lib/xtreme/settings.c index 62a559d79..fbcc24218 100644 --- a/lib/xtreme/settings.c +++ b/lib/xtreme/settings.c @@ -32,6 +32,8 @@ XtremeSettings xtreme_settings = { }; void XTREME_SETTINGS_LOAD() { + if(!furi_hal_is_normal_boot()) return; + XtremeSettings* x = &xtreme_settings; Storage* storage = furi_record_open(RECORD_STORAGE); FlipperFormat* file = flipper_format_file_alloc(storage);