mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-06-07 19:01:54 -07:00
Only load xtreme on normal boot
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user