diff options
Diffstat (limited to 'backends/platform/wii')
| -rw-r--r-- | backends/platform/wii/osystem.cpp | 10 | ||||
| -rw-r--r-- | backends/platform/wii/osystem.h | 2 |
2 files changed, 9 insertions, 3 deletions
diff --git a/backends/platform/wii/osystem.cpp b/backends/platform/wii/osystem.cpp index 00547d55d6..12df2ca7e1 100644 --- a/backends/platform/wii/osystem.cpp +++ b/backends/platform/wii/osystem.cpp @@ -264,9 +264,15 @@ FilesystemFactory *OSystem_Wii::getFilesystemFactory() { return &WiiFilesystemFactory::instance(); } -void OSystem_Wii::getTimeAndDate(struct tm &t) const { +void OSystem_Wii::getTimeAndDate(TimeDate &td) const { time_t curTime = time(0); - t = *localtime(&curTime); + struct tm t = *localtime(&curTime); + td.tm_sec = t.tm_sec; + td.tm_min = t.tm_min; + td.tm_hour = t.tm_hour; + td.tm_mday = t.tm_mday; + td.tm_mon = t.tm_mon; + td.tm_year = t.tm_year; } void OSystem_Wii::showOptionsDialog() { diff --git a/backends/platform/wii/osystem.h b/backends/platform/wii/osystem.h index 23097dd027..d277aa38b1 100644 --- a/backends/platform/wii/osystem.h +++ b/backends/platform/wii/osystem.h @@ -211,7 +211,7 @@ public: virtual Audio::Mixer *getMixer(); virtual Common::TimerManager *getTimerManager(); virtual FilesystemFactory *getFilesystemFactory(); - virtual void getTimeAndDate(struct tm &t) const; + virtual void getTimeAndDate(TimeDate &t) const; }; #endif |
