mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-06-29 21:52:03 -07:00
Improve flipper init and add logging + led
This commit is contained in:
@@ -102,8 +102,6 @@ void free_icon(const Icon* icon) {
|
||||
}
|
||||
|
||||
void XTREME_ASSETS_LOAD() {
|
||||
if(!furi_hal_is_normal_boot()) return;
|
||||
|
||||
const char* pack = XTREME_SETTINGS()->asset_pack;
|
||||
XTREME_SETTINGS()->is_nsfw = !strncmp(pack, "NSFW", strlen("NSFW"));
|
||||
if(pack[0] == '\0') return;
|
||||
@@ -133,8 +131,6 @@ void XTREME_ASSETS_LOAD() {
|
||||
}
|
||||
|
||||
void XTREME_ASSETS_FREE() {
|
||||
if(!furi_hal_is_normal_boot()) return;
|
||||
|
||||
for(size_t i = 0; i < ICON_PATHS_COUNT; i++) {
|
||||
if(ICON_PATHS[i].icon->original != NULL) {
|
||||
free_icon(ICON_PATHS[i].icon);
|
||||
|
||||
@@ -37,8 +37,6 @@ 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);
|
||||
@@ -169,8 +167,6 @@ void XTREME_SETTINGS_LOAD() {
|
||||
}
|
||||
|
||||
void XTREME_SETTINGS_SAVE() {
|
||||
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