diff options
-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 |