diff options
author | Max Horn | 2008-05-15 11:36:56 +0000 |
---|---|---|
committer | Max Horn | 2008-05-15 11:36:56 +0000 |
commit | 6206fb2a188b28db426cb85653e8c6bf00d1f1d3 (patch) | |
tree | e50d359b95e38b424a44537733bf114d3d967415 /common | |
parent | 732d440d19a34f3f46c07487f5d724459375e640 (diff) | |
download | scummvm-rg350-6206fb2a188b28db426cb85653e8c6bf00d1f1d3.tar.gz scummvm-rg350-6206fb2a188b28db426cb85653e8c6bf00d1f1d3.tar.bz2 scummvm-rg350-6206fb2a188b28db426cb85653e8c6bf00d1f1d3.zip |
Removed the default OSystem::getTimeAndDate() implementation
svn-id: r32138
Diffstat (limited to 'common')
-rw-r--r-- | common/system.cpp | 10 | ||||
-rw-r--r-- | common/system.h | 8 |
2 files changed, 6 insertions, 12 deletions
diff --git a/common/system.cpp b/common/system.cpp index 8c9ca46da6..9334185d05 100644 --- a/common/system.cpp +++ b/common/system.cpp @@ -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 @@ void OSystem::clearScreen() { 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. * diff --git a/common/system.h b/common/system.h index 7989cabfbd..d2844401b0 100644 --- a/common/system.h +++ b/common/system.h @@ -727,8 +727,12 @@ public: /** 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 |