aboutsummaryrefslogtreecommitdiff
path: root/backends/platform
diff options
context:
space:
mode:
authorChris Apers2008-05-23 11:25:22 +0000
committerChris Apers2008-05-23 11:25:22 +0000
commit4a26c04ff95b4ec05ff0416511da8ae15e44a503 (patch)
tree5ff7d8e8b957683b7f385ab3a9dd2899dbc24ffa /backends/platform
parent1b69c18b566569bf7a2e4db83bfd8c252bb69a51 (diff)
downloadscummvm-rg350-4a26c04ff95b4ec05ff0416511da8ae15e44a503.tar.gz
scummvm-rg350-4a26c04ff95b4ec05ff0416511da8ae15e44a503.tar.bz2
scummvm-rg350-4a26c04ff95b4ec05ff0416511da8ae15e44a503.zip
Added missing getTimeAndDate backend function
svn-id: r32224
Diffstat (limited to 'backends/platform')
-rw-r--r--backends/platform/PalmOS/Src/be_base.cpp5
-rw-r--r--backends/platform/PalmOS/Src/be_base.h3
2 files changed, 8 insertions, 0 deletions
diff --git a/backends/platform/PalmOS/Src/be_base.cpp b/backends/platform/PalmOS/Src/be_base.cpp
index 3dadbe5286..e6816893a9 100644
--- a/backends/platform/PalmOS/Src/be_base.cpp
+++ b/backends/platform/PalmOS/Src/be_base.cpp
@@ -120,6 +120,11 @@ void OSystem_PalmBase::initBackend() {
OSystem::initBackend();
}
+void OSystem_PalmBase::getTimeAndDate(struct tm &t) const {
+ time_t curTime = time(0);
+ t = *localtime(&curTime);
+}
+
uint32 OSystem_PalmBase::getMillis() {
return TimGetTicks() * 1000 / SysTicksPerSecond();
}
diff --git a/backends/platform/PalmOS/Src/be_base.h b/backends/platform/PalmOS/Src/be_base.h
index 38b76fcb05..582aae5d7a 100644
--- a/backends/platform/PalmOS/Src/be_base.h
+++ b/backends/platform/PalmOS/Src/be_base.h
@@ -26,6 +26,8 @@
#ifndef BE_BASE_H
#define BE_BASE_H
+#include <time.h>
+
#include "PalmVersion.h"
#include "globals.h"
@@ -236,6 +238,7 @@ public:
bool pollEvent(Common::Event &event);
+ void getTimeAndDate(struct tm &t) const;
virtual uint32 getMillis();
virtual void delayMillis(uint msecs);