diff options
author | Bertrand Augereau | 2008-05-14 07:04:14 +0000 |
---|---|---|
committer | Bertrand Augereau | 2008-05-14 07:04:14 +0000 |
commit | 9f2ffaabb3254a9329a6b3529a649cf6b1811e02 (patch) | |
tree | 255ecc03c3292834cbe0baf7b2788ef4c28b6d27 /backends/platform/ds | |
parent | 5f2e26e5774edc1f77b68db1ba9e8d264d385967 (diff) | |
download | scummvm-rg350-9f2ffaabb3254a9329a6b3529a649cf6b1811e02.tar.gz scummvm-rg350-9f2ffaabb3254a9329a6b3529a649cf6b1811e02.tar.bz2 scummvm-rg350-9f2ffaabb3254a9329a6b3529a649cf6b1811e02.zip |
NDS: OSystem::getTimeAndDate is demoted to the port (with the standard
implementation)
svn-id: r32099
Diffstat (limited to 'backends/platform/ds')
-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); |