forked from len0rd/rockbox
Doom: Keep the light on during gameplay.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16004 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
919caf0208
commit
2aa0c4c66b
1 changed files with 8 additions and 3 deletions
|
|
@ -38,6 +38,7 @@
|
||||||
#include "hu_stuff.h"
|
#include "hu_stuff.h"
|
||||||
#include "st_stuff.h"
|
#include "st_stuff.h"
|
||||||
#include "lib/oldmenuapi.h"
|
#include "lib/oldmenuapi.h"
|
||||||
|
#include "lib/helper.h"
|
||||||
|
|
||||||
PLUGIN_HEADER
|
PLUGIN_HEADER
|
||||||
PLUGIN_IRAM_DECLARE
|
PLUGIN_IRAM_DECLARE
|
||||||
|
|
@ -708,10 +709,12 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
|
||||||
if (result < 0)
|
if (result < 0)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
|
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
|
||||||
rb->cpu_boost(false);
|
rb->cpu_boost(false);
|
||||||
#endif
|
#endif
|
||||||
if( result == -1 ) return PLUGIN_OK; // Quit was selected
|
if( result == -1 )
|
||||||
else if( result == -2 ) return PLUGIN_ERROR; // Missing base wads
|
return PLUGIN_OK; // Quit was selected
|
||||||
|
else
|
||||||
|
return PLUGIN_ERROR; // Missing base wads
|
||||||
}
|
}
|
||||||
|
|
||||||
#if(LCD_HEIGHT>LCD_WIDTH)
|
#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);
|
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
|
general_translucency = default_translucency; // phares
|
||||||
|
|
||||||
|
backlight_force_on(rb);
|
||||||
#ifdef RB_PROFILE
|
#ifdef RB_PROFILE
|
||||||
rb->profile_thread();
|
rb->profile_thread();
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -747,6 +751,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
|
||||||
#ifdef RB_PROFILE
|
#ifdef RB_PROFILE
|
||||||
rb->profstop();
|
rb->profstop();
|
||||||
#endif
|
#endif
|
||||||
|
backlight_use_settings(rb);
|
||||||
|
|
||||||
M_SaveDefaults ();
|
M_SaveDefaults ();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue