summaryrefslogtreecommitdiff
path: root/apps/plugins/rockboy/emu.c
diff options
context:
space:
mode:
authorTom Ross <midgey@rockbox.org>2007-07-30 05:19:05 +0000
committerTom Ross <midgey@rockbox.org>2007-07-30 05:19:05 +0000
commite1147b87abef7687055c9127437e6ce1353c6113 (patch)
treeab9da3b3ca7efd58cbfcecf18c7735e95df8be92 /apps/plugins/rockboy/emu.c
parent206a5d3585fcda50692fae2d60b2fba639c373b1 (diff)
downloadrockbox-e1147b87abef7687055c9127437e6ce1353c6113.tar.gz
rockbox-e1147b87abef7687055c9127437e6ce1353c6113.zip
RTC (real time clock) support for Rockboy. The time in games like Pokemon Gold/Silver should now stay synced on RTC-capable targets. Other targets will lose track of time when the player is turned off. User's can edit the .rtc file in an attempt to resync the RTC. The clock should stay synced when entering and leaving the menu. I've tested this over the past two weeks and it seems to work well.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14071 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/rockboy/emu.c')
-rw-r--r--apps/plugins/rockboy/emu.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/apps/plugins/rockboy/emu.c b/apps/plugins/rockboy/emu.c
index 02e5fa0b1c..d04fa9a0fb 100644
--- a/apps/plugins/rockboy/emu.c
+++ b/apps/plugins/rockboy/emu.c
@@ -32,7 +32,6 @@ void emu_step(void)
32 * make things work in the mean time. */ 32 * make things work in the mean time. */
33void emu_run(void) 33void emu_run(void)
34{ 34{
35 /*void *timer = sys_timer();*/
36 int framesin=0,frames=0,timeten=*rb->current_tick, timehun=*rb->current_tick; 35 int framesin=0,frames=0,timeten=*rb->current_tick, timehun=*rb->current_tick;
37 36
38 setvidmode(); 37 setvidmode();
@@ -48,20 +47,13 @@ void emu_run(void)
48 while (R_LY > 0 && R_LY < 144) 47 while (R_LY > 0 && R_LY < 144)
49 emu_step(); 48 emu_step();
50 49
51 rtc_tick(); /* RTC support not implemented */ 50 rtc_tick();
52 51
53 if (options.sound || !plugbuf) 52 if (options.sound || !plugbuf)
54 { 53 {
55 sound_mix(); 54 sound_mix();
56 pcm_submit(); 55 pcm_submit();
57 } 56 }
58 else
59 {
60/* delay = framelen - sys_elapsed(timer);
61 sys_sleep(delay);
62 sys_elapsed(timer);
63*/
64 }
65 57
66 doevents(); 58 doevents();
67 vid_begin(); 59 vid_begin();