From 2aa0c4c66b64efd574b500a8787cb2ef37c0232b Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Sun, 6 Jan 2008 14:05:55 +0000 Subject: [PATCH] Doom: Keep the light on during gameplay. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16004 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/doom/rockdoom.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/apps/plugins/doom/rockdoom.c b/apps/plugins/doom/rockdoom.c index c0ff83e9a6..360ddf0358 100644 --- a/apps/plugins/doom/rockdoom.c +++ b/apps/plugins/doom/rockdoom.c @@ -38,6 +38,7 @@ #include "hu_stuff.h" #include "st_stuff.h" #include "lib/oldmenuapi.h" +#include "lib/helper.h" PLUGIN_HEADER PLUGIN_IRAM_DECLARE @@ -708,10 +709,12 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) if (result < 0) { #ifdef HAVE_ADJUSTABLE_CPU_FREQ - rb->cpu_boost(false); + rb->cpu_boost(false); #endif - if( result == -1 ) return PLUGIN_OK; // Quit was selected - else if( result == -2 ) return PLUGIN_ERROR; // Missing base wads + if( result == -1 ) + return PLUGIN_OK; // Quit was selected + else + return PLUGIN_ERROR; // Missing base wads } #if(LCD_HEIGHT>LCD_WIDTH) @@ -736,6 +739,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) systemvol= rb->global_settings->volume-rb->global_settings->volume%((rb->sound_max(SOUND_VOLUME)-rb->sound_min(SOUND_VOLUME))/15); general_translucency = default_translucency; // phares + backlight_force_on(rb); #ifdef RB_PROFILE rb->profile_thread(); #endif @@ -747,6 +751,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) #ifdef RB_PROFILE rb->profstop(); #endif + backlight_use_settings(rb); M_SaveDefaults ();