[Scummvm-cvs-logs] SF.net SVN: scummvm: [32138] scummvm/trunk/common

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Thu May 15 13:36:56 CEST 2008


Revision: 32138
          http://scummvm.svn.sourceforge.net/scummvm/?rev=32138&view=rev
Author:   fingolfin
Date:     2008-05-15 04:36:56 -0700 (Thu, 15 May 2008)

Log Message:
-----------
Removed the default OSystem::getTimeAndDate() implementation

Modified Paths:
--------------
    scummvm/trunk/common/system.cpp
    scummvm/trunk/common/system.h

Modified: scummvm/trunk/common/system.cpp
===================================================================
--- scummvm/trunk/common/system.cpp	2008-05-15 10:34:43 UTC (rev 32137)
+++ scummvm/trunk/common/system.cpp	2008-05-15 11:36:56 UTC (rev 32138)
@@ -35,8 +35,6 @@
 #include "gui/message.h"
 #include "sound/mixer.h"
 
-#include <time.h>
-
 OSystem *g_system = 0;
 
 OSystem::OSystem() {
@@ -124,14 +122,6 @@
 	unlockScreen();
 }
 
-void OSystem::getTimeAndDate(struct tm &t) const {
-#ifndef __PLAYSTATION2__
-	// PS2SDK doesn't provide localtime, so this code doesn't compile
-	time_t curTime = time(0);
-	t = *localtime(&curTime);
-#endif
-}
-
 /*
  * Include header files needed for the getFilesystemFactory() method.
  *

Modified: scummvm/trunk/common/system.h
===================================================================
--- scummvm/trunk/common/system.h	2008-05-15 10:34:43 UTC (rev 32137)
+++ scummvm/trunk/common/system.h	2008-05-15 11:36:56 UTC (rev 32138)
@@ -727,8 +727,12 @@
 	/** Delay/sleep for the specified amount of milliseconds. */
 	virtual void delayMillis(uint msecs) = 0;
 
-	/** Get the current time and date. Correspond to time()+localtime(). */
-	virtual void getTimeAndDate(struct tm &t) const;
+	/**
+	 * Get the current time and date, in the local timezone.
+	 * Corresponds on many systems to the combination of time()
+	 * and localtime().
+	 */
+	virtual void getTimeAndDate(struct tm &t) const = 0;
 
 	/**
 	 * Return the timer manager singleton. For more information, refer


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