summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorFranklin Wei <franklin@rockbox.org>2020-06-26 20:54:22 -0400
committerFranklin Wei <franklin@rockbox.org>2020-06-27 13:27:40 -0400
commit5831801d168c48fcdd97de8cb29442534afbfad0 (patch)
tree1d64487af5aacbfb80b3a03b05ef36b0f36e2185 /apps
parenta65a341a0036737f161bfdd30adeab25faed3134 (diff)
downloadrockbox-5831801d168c48fcdd97de8cb29442534afbfad0.tar.gz
rockbox-5831801d168c48fcdd97de8cb29442534afbfad0.tar.bz2
rockbox-5831801d168c48fcdd97de8cb29442534afbfad0.zip
puzzles: disable software poweroff in all puzzles
We have a couple games like Untangle and mouse-mode games in which the software poweroff is very annoying. Change-Id: I554b89aecf8c7cc20c6c7f305be1b8807dc9283b
Diffstat (limited to 'apps')
-rw-r--r--apps/plugins/puzzles/rockbox.c9
1 files changed, 8 insertions, 1 deletions
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();