aboutsummaryrefslogtreecommitdiff
path: root/source/nds/entry.cpp
diff options
context:
space:
mode:
authorNebuleon Fumika2013-02-02 17:37:51 -0500
committerNebuleon Fumika2013-02-03 03:20:47 -0500
commit02f8184fe07d99cceb85f4abd3ef0e5e3765b5ea (patch)
tree263489cdf76389bc1b2d1bfb76c9f55114acd95f /source/nds/entry.cpp
parent7aeebe97e72b07d60ea77041a5259086e68e2db2 (diff)
downloadsnes9x2005-02f8184fe07d99cceb85f4abd3ef0e5e3765b5ea.tar.gz
snes9x2005-02f8184fe07d99cceb85f4abd3ef0e5e3765b5ea.tar.bz2
snes9x2005-02f8184fe07d99cceb85f4abd3ef0e5e3765b5ea.zip
Make it easier to change the "high" and "low" CPU frequencies, as well as to switch to the user's chosen frequency for the game.
Conflicts: source/nds/ds2_main.c source/nds/entry.cpp source/nds/gui.c
Diffstat (limited to 'source/nds/entry.cpp')
-rw-r--r--source/nds/entry.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/nds/entry.cpp b/source/nds/entry.cpp
index 986ecce..5d79b64 100644
--- a/source/nds/entry.cpp
+++ b/source/nds/entry.cpp
@@ -86,7 +86,7 @@ void S9xParseDisplayArg (char **argv, int &ind, int)
void S9xExit ()
{
- ds2_setCPUclocklevel(13); // Crank it up to exit quickly
+ HighFrequencyCPU(); // Crank it up to exit quickly
if(Settings.SPC7110)
(*CleanUp7110)();
@@ -1125,7 +1125,7 @@ unsigned int S9xReadJoypad (int which1)
if (inputdata.key & KEY_LID)
{
- ds2_setCPUclocklevel(0);
+ LowFrequencyCPU();
ds2_setSupend();
do {
ds2_getrawInput(&inputdata);
@@ -1136,7 +1136,7 @@ unsigned int S9xReadJoypad (int which1)
// screen's backlight.
mdelay(100); // needed to avoid ds2_setBacklight crashing
ds2_setBacklight(2);
- set_cpu_clock(clock_speed_number);
+ GameFrequencyCPU();
}
u32 HotkeyReturnToMenu = game_config.HotkeyReturnToMenu != 0 ? game_config.HotkeyReturnToMenu : emu_config.HotkeyReturnToMenu;