From 9f2ffaabb3254a9329a6b3529a649cf6b1811e02 Mon Sep 17 00:00:00 2001 From: Bertrand Augereau Date: Wed, 14 May 2008 07:04:14 +0000 Subject: NDS: OSystem::getTimeAndDate is demoted to the port (with the standard implementation) svn-id: r32099 --- backends/platform/ds/arm9/source/osystem_ds.cpp | 5 +++++ backends/platform/ds/arm9/source/osystem_ds.h | 1 + 2 files changed, 6 insertions(+) (limited to 'backends/platform/ds') diff --git a/backends/platform/ds/arm9/source/osystem_ds.cpp b/backends/platform/ds/arm9/source/osystem_ds.cpp index 2044448923..cacbe0eee0 100644 --- a/backends/platform/ds/arm9/source/osystem_ds.cpp +++ b/backends/platform/ds/arm9/source/osystem_ds.cpp @@ -419,6 +419,11 @@ void OSystem_DS::delayMillis(uint msecs) DS::addEventsToQueue(); } +void OSystem_DS::getTimeAndDate(struct tm &t) const { + time_t curTime = time(0); + t = *localtime(&curTime); +} + OSystem::MutexRef OSystem_DS::createMutex(void) { return NULL; diff --git a/backends/platform/ds/arm9/source/osystem_ds.h b/backends/platform/ds/arm9/source/osystem_ds.h index 9d6454d02d..2bbd82bcf7 100644 --- a/backends/platform/ds/arm9/source/osystem_ds.h +++ b/backends/platform/ds/arm9/source/osystem_ds.h @@ -107,6 +107,7 @@ public: virtual bool pollEvent(Common::Event &event); virtual uint32 getMillis(); virtual void delayMillis(uint msecs); + virtual void getTimeAndDate(struct tm &t) const; virtual MutexRef createMutex(void); virtual void lockMutex(MutexRef mutex); -- cgit v1.2.3