From e1147b87abef7687055c9127437e6ce1353c6113 Mon Sep 17 00:00:00 2001 From: Tom Ross Date: Mon, 30 Jul 2007 05:19:05 +0000 Subject: 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 --- apps/plugins/rockboy/emu.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'apps/plugins/rockboy/emu.c') 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) * make things work in the mean time. */ void emu_run(void) { - /*void *timer = sys_timer();*/ int framesin=0,frames=0,timeten=*rb->current_tick, timehun=*rb->current_tick; setvidmode(); @@ -48,20 +47,13 @@ void emu_run(void) while (R_LY > 0 && R_LY < 144) emu_step(); - rtc_tick(); /* RTC support not implemented */ + rtc_tick(); if (options.sound || !plugbuf) { sound_mix(); pcm_submit(); } - else - { -/* delay = framelen - sys_elapsed(timer); - sys_sleep(delay); - sys_elapsed(timer); -*/ - } doevents(); vid_begin(); -- cgit v1.2.3