From 7c2a30c5b54e000106e466ba44fcc040746a0c90 Mon Sep 17 00:00:00 2001 From: Nebuleon Fumika Date: Wed, 2 Jan 2013 03:20:47 -0500 Subject: Sleep when the lid is closed AND emulation is running. I don't know to what extent this will save on battery usage, though I do set the DSTWO's CPU to the lowest frequency while it sleeps. --- source/nds/gui.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/nds/gui.h') diff --git a/source/nds/gui.h b/source/nds/gui.h index 9ebaf26..5a40979 100644 --- a/source/nds/gui.h +++ b/source/nds/gui.h @@ -97,6 +97,7 @@ extern char main_path[MAX_PATH]; extern char rom_path[MAX_PATH]; extern u32 game_enable_audio; +extern u32 clock_speed_number; /****************************************************************************** ******************************************************************************/ @@ -117,6 +118,7 @@ extern GAME_CONFIG game_config; extern void gui_init(u32 lang_id); extern u32 menu(u16 *original_screen); extern void game_disableAudio(); +extern void set_cpu_clock(u32 num); #ifdef __cplusplus } -- cgit v1.2.3