diff options
author | Karl Kurbjun <kkurbjun@gmail.com> | 2006-10-01 01:07:45 +0000 |
---|---|---|
committer | Karl Kurbjun <kkurbjun@gmail.com> | 2006-10-01 01:07:45 +0000 |
commit | 4caa676a9c91e6855fc9f4780d7fb72498dd1804 (patch) | |
tree | 5e9fcaeb56ce983f92b0c3e61a8d6b2cc57ef948 /apps/plugins | |
parent | 76e5d6ca4ca2cc7bb7d5330cd15d41d6b2db00a6 (diff) |
Deboost under all exits for rockdoom thanks to patch 5851 by David Dent
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11100 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/doom/rockdoom.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/apps/plugins/doom/rockdoom.c b/apps/plugins/doom/rockdoom.c index 26afad6dc1..718a7b9f47 100644 --- a/apps/plugins/doom/rockdoom.c +++ b/apps/plugins/doom/rockdoom.c @@ -827,8 +827,14 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) rb->lcd_clear_display(); int result = doom_menu(); - if( result == -1 ) return PLUGIN_OK; // Quit was selected - else if( result == -2 ) return PLUGIN_ERROR; // Missing base wads + if (result < 0) + { +#ifdef HAVE_ADJUSTABLE_CPU_FREQ + rb->cpu_boost(false); +#endif + if( result == -1 ) return PLUGIN_OK; // Quit was selected + else if( result == -2 ) return PLUGIN_ERROR; // Missing base wads + } Dhandle_ver( namemap[ result ] ); |