aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/kernel/filesystemutil.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sword25/kernel/filesystemutil.cpp')
-rw-r--r--engines/sword25/kernel/filesystemutil.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/sword25/kernel/filesystemutil.cpp b/engines/sword25/kernel/filesystemutil.cpp
index d716bc036e..831efc6add 100644
--- a/engines/sword25/kernel/filesystemutil.cpp
+++ b/engines/sword25/kernel/filesystemutil.cpp
@@ -102,11 +102,13 @@ public:
return size;
}
- virtual time_t GetFileTime(const Common::String &Filename) {
+ virtual TimeDate GetFileTime(const Common::String &Filename) {
// TODO: There isn't any way in ScummVM to get a file's modified date/time. We will need to check
// what code makes use of it. If it's only the save game code, for example, we may be able to
// encode the date/time inside the savegame files themselves.
- return 0;
+ TimeDate result;
+ g_system->getTimeAndDate(result);
+ return result;
}
virtual bool FileExists(const Common::String &Filename) {