diff options
-rw-r--r-- | backends/platform/ds/arm9/source/osystem_ds.cpp | 5 | ||||
-rw-r--r-- | backends/platform/ds/arm9/source/osystem_ds.h | 1 |
2 files changed, 6 insertions, 0 deletions
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); |