diff options
author | Nebuleon Fumika | 2013-01-14 04:11:35 -0500 |
---|---|---|
committer | Nebuleon Fumika | 2013-01-14 04:11:35 -0500 |
commit | c7cc65547335fb9ecc10ff011c786387d399396b (patch) | |
tree | 69510273fd3567c08322074e10725ca68df097ec /source | |
parent | 259cbd18376ed44ccceabd48fbe050b03819abda (diff) | |
download | snes9x2005-c7cc65547335fb9ecc10ff011c786387d399396b.tar.gz snes9x2005-c7cc65547335fb9ecc10ff011c786387d399396b.tar.bz2 snes9x2005-c7cc65547335fb9ecc10ff011c786387d399396b.zip |
Raise the CPU frequency while loading or saving states and while showing their screenshots.
Diffstat (limited to 'source')
-rw-r--r-- | source/nds/gui.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/nds/gui.c b/source/nds/gui.c index 8311263..7b48ba1 100644 --- a/source/nds/gui.c +++ b/source/nds/gui.c @@ -2034,7 +2034,9 @@ u32 menu(u16 *screen) draw_string_vcenter(down_screen_addr, 36, 100, 190, COLOR_MSSG, msg[MSG_PROGRESS_SAVED_STATE_CREATING]); ds2_flipScreen(DOWN_SCREEN, DOWN_SCREEN_UPDATE_METHOD); + ds2_setCPUclocklevel(13); int flag = save_state(tmp_filename, (void*)screen); + ds2_setCPUclocklevel(0); //clear message draw_message(down_screen_addr, NULL, 28, 31, 227, 96, 0); if(flag < 0) @@ -2101,7 +2103,9 @@ u32 menu(u16 *screen) draw_message(down_screen_addr, bg_screenp, 28, 31, 227, 165, bg_screenp_color); draw_string_vcenter(up_screen_addr, 36, 75, 190, COLOR_MSSG, msg[MSG_PROGRESS_SAVED_STATE_LOADING]); + ds2_setCPUclocklevel(13); int flag = load_state(tmp_filename); + ds2_setCPUclocklevel(0); if(0 == flag) { return_value = 1; @@ -2116,7 +2120,9 @@ u32 menu(u16 *screen) } else //load screen snapshot { + ds2_setCPUclocklevel(13); load_game_stat_snapshot(tmp_filename); + ds2_setCPUclocklevel(0); } } else |