summaryrefslogtreecommitdiffstats
path: root/apps/plugins/rockboy/sys_rockbox.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/sys_rockbox.c
parent206a5d3585fcda50692fae2d60b2fba639c373b1 (diff)
downloadrockbox-e1147b87abef7687055c9127437e6ce1353c6113.tar.gz
rockbox-e1147b87abef7687055c9127437e6ce1353c6113.tar.bz2
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/sys_rockbox.c')
-rw-r--r--apps/plugins/rockboy/sys_rockbox.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/apps/plugins/rockboy/sys_rockbox.c b/apps/plugins/rockboy/sys_rockbox.c
index 60cac0a88d..fe3326737d 100644
--- a/apps/plugins/rockboy/sys_rockbox.c
+++ b/apps/plugins/rockboy/sys_rockbox.c
@@ -328,23 +328,3 @@ void vid_update(int scanline)
}
#endif
-long timerresult;
-
-void *sys_timer(void)
-{
- /*timerresult=*rb->current_tick;
- return &timerresult;*/
- return 0;
-}
-
-/* returns microseconds passed since sys_timer */
-int sys_elapsed(long *oldtick)
-{
- /* int elap,mytime=microtick;
-
- elap=mytime-*oldtick;
- *oldtick=mytime;
- return elap; */
- /* return ((*rb->current_tick-(*oldtick))*1000000)/HZ; */
- return *oldtick;
-}