SFW mode by default

This commit is contained in:
Willy-JL
2023-01-23 13:37:15 +00:00
parent b5cf260135
commit 109583cb9f
12 changed files with 110 additions and 110 deletions

View File

@@ -571,7 +571,9 @@ static void animation_manager_switch_to_one_shot_view(AnimationManager* animatio
View* next_view = one_shot_view_get_view(animation_manager->one_shot_view);
view_stack_remove_view(animation_manager->view_stack, prev_view);
view_stack_add_view(animation_manager->view_stack, next_view);
if(XTREME_SETTINGS()->sfw_mode) {
if(XTREME_SETTINGS()->nsfw_mode) {
one_shot_view_start_animation(animation_manager->one_shot_view, &A_Levelup1_128x64);
} else {
if(stats.level <= 20) {
one_shot_view_start_animation(
animation_manager->one_shot_view, &A_Levelup1_128x64_sfw);
@@ -581,8 +583,6 @@ static void animation_manager_switch_to_one_shot_view(AnimationManager* animatio
} else {
furi_assert(0);
}
} else {
one_shot_view_start_animation(animation_manager->one_shot_view, &A_Levelup1_128x64);
}
}

View File

@@ -38,12 +38,12 @@ void animation_handler_select_manifest() {
FURI_LOG_I(TAG, "Custom Manifest selected");
} else {
furi_string_cat_str(anim_dir, BASE_ANIMATION_DIR);
if(xtreme_settings->sfw_mode) {
furi_string_cat_str(anim_dir, "/sfw");
FURI_LOG_I(TAG, "SFW Manifest selected");
} else {
if(xtreme_settings->nsfw_mode) {
furi_string_cat_str(anim_dir, "/nsfw");
FURI_LOG_I(TAG, "NSFW Manifest selected");
} else {
furi_string_cat_str(anim_dir, "/sfw");
FURI_LOG_I(TAG, "SFW Manifest selected");
}
}
strlcpy(ANIMATION_DIR, furi_string_get_cstr(anim_dir), sizeof(ANIMATION_DIR));

View File

@@ -15,10 +15,10 @@ void desktop_scene_fault_on_enter(void* context) {
Popup* popup = desktop->hw_mismatch_popup;
popup_set_context(popup, desktop);
if(XTREME_SETTINGS()->sfw_mode) {
if(XTREME_SETTINGS()->nsfw_mode) {
popup_set_header(
popup,
"Flipper crashed\n but has been rebooted",
"Slut passed out\n but is now back",
60,
14 + STATUS_BAR_Y_SHIFT,
AlignCenter,
@@ -26,7 +26,7 @@ void desktop_scene_fault_on_enter(void* context) {
} else {
popup_set_header(
popup,
"Slut passed out\n but is now back",
"Flipper crashed\n but has been rebooted",
60,
14 + STATUS_BAR_Y_SHIFT,
AlignCenter,