[Scummvm-cvs-logs] SF.net SVN: scummvm: [31027] scummvm/trunk/backends/platform/dc
marcus_c at users.sourceforge.net
marcus_c at users.sourceforge.net
Sat Mar 1 23:12:52 CET 2008
Revision: 31027
http://scummvm.svn.sourceforge.net/scummvm/?rev=31027&view=rev
Author: marcus_c
Date: 2008-03-01 14:12:52 -0800 (Sat, 01 Mar 2008)
Log Message:
-----------
Added getTimeAndDate() implementation.
Modified Paths:
--------------
scummvm/trunk/backends/platform/dc/dc.h
scummvm/trunk/backends/platform/dc/dcmain.cpp
Modified: scummvm/trunk/backends/platform/dc/dc.h
===================================================================
--- scummvm/trunk/backends/platform/dc/dc.h 2008-03-01 20:51:16 UTC (rev 31026)
+++ scummvm/trunk/backends/platform/dc/dc.h 2008-03-01 22:12:52 UTC (rev 31027)
@@ -116,6 +116,9 @@
// Delay for a specified amount of milliseconds
void delayMillis(uint msecs);
+ // Get the current time and date. Correspond to time()+localtime().
+ void getTimeAndDate(struct tm &t) const;
+
// Get the next event.
// Returns true if an event was retrieved.
bool pollEvent(Common::Event &event);
Modified: scummvm/trunk/backends/platform/dc/dcmain.cpp
===================================================================
--- scummvm/trunk/backends/platform/dc/dcmain.cpp 2008-03-01 20:51:16 UTC (rev 31026)
+++ scummvm/trunk/backends/platform/dc/dcmain.cpp 2008-03-01 22:12:52 UTC (rev 31027)
@@ -190,6 +190,11 @@
}
}
+void OSystem_Dreamcast::getTimeAndDate(struct tm &t) const {
+ time_t curTime;
+ time(&curTime);
+ t = *localtime(&curTime);
+}
void dc_init_hardware()
{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list