diff options
author | Franklin Wei <franklin@rockbox.org> | 2020-06-26 20:54:22 -0400 |
---|---|---|
committer | Franklin Wei <franklin@rockbox.org> | 2020-06-27 13:27:40 -0400 |
commit | 5831801d168c48fcdd97de8cb29442534afbfad0 (patch) | |
tree | 1d64487af5aacbfb80b3a03b05ef36b0f36e2185 | |
parent | a65a341a0036737f161bfdd30adeab25faed3134 (diff) | |
download | rockbox-5831801d168c48fcdd97de8cb29442534afbfad0.tar.gz 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
-rw-r--r-- | apps/plugins/puzzles/rockbox.c | 9 |
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) | |||
3012 | 3012 | ||
3013 | static void exit_handler(void) | 3013 | static void exit_handler(void) |
3014 | { | 3014 | { |
3015 | #ifdef HAVE_SW_POWEROFF | ||
3016 | sw_poweroff_restore(); | ||
3017 | #endif | ||
3018 | |||
3015 | unload_fonts(); | 3019 | unload_fonts(); |
3016 | shutdown_tlsf(); | 3020 | shutdown_tlsf(); |
3017 | 3021 | ||
@@ -3270,8 +3274,11 @@ static void puzzles_main(void) | |||
3270 | { | 3274 | { |
3271 | rb_atexit(exit_handler); | 3275 | rb_atexit(exit_handler); |
3272 | 3276 | ||
3273 | init_default_settings(); | 3277 | #ifdef HAVE_SW_POWEROFF |
3278 | sw_poweroff_disable(); | ||
3279 | #endif | ||
3274 | 3280 | ||
3281 | init_default_settings(); | ||
3275 | init_fonttab(); | 3282 | init_fonttab(); |
3276 | 3283 | ||
3277 | load_success = load_game(); | 3284 | load_success = load_game(); |