diff --git a/apps/plugins/puzzles/rockbox.c b/apps/plugins/puzzles/rockbox.c index 9155788824..300e2c33c7 100644 --- a/apps/plugins/puzzles/rockbox.c +++ b/apps/plugins/puzzles/rockbox.c @@ -3012,6 +3012,10 @@ static void shutdown_tlsf(void) static void exit_handler(void) { +#ifdef HAVE_SW_POWEROFF + sw_poweroff_restore(); +#endif + unload_fonts(); shutdown_tlsf(); @@ -3270,8 +3274,11 @@ static void puzzles_main(void) { rb_atexit(exit_handler); - init_default_settings(); +#ifdef HAVE_SW_POWEROFF + sw_poweroff_disable(); +#endif + init_default_settings(); init_fonttab(); load_success = load_game();