Only load xtreme on normal boot

This commit is contained in:
Willy-JL
2023-05-21 19:39:25 +01:00
parent faa2e0e8c0
commit aa7cb42642
2 changed files with 5 additions and 0 deletions
+3
View File
@@ -1,5 +1,6 @@
#include "xtreme.h"
#include "private.h"
#include <furi_hal.h>
#include <assets_icons.h>
#include <storage/storage.h>
#include <core/dangerous_defines.h>
@@ -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;
+2
View File
@@ -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);