diff options
author | Paul Gilbert | 2010-08-01 11:02:24 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2010-10-12 22:20:41 +0000 |
commit | fab86ba22250c282139fb0c94a250499abdc875f (patch) | |
tree | ead53adf84dc47cfb85c39c9c06cab99069c7867 /engines/sword25/kernel/filesystemutil.cpp | |
parent | b9044a6a27dc9f3549047898ea6b88d2c291a420 (diff) | |
download | scummvm-rg350-fab86ba22250c282139fb0c94a250499abdc875f.tar.gz scummvm-rg350-fab86ba22250c282139fb0c94a250499abdc875f.tar.bz2 scummvm-rg350-fab86ba22250c282139fb0c94a250499abdc875f.zip |
SWORD25: Converted Savegame Load/Save code
In addition to converting the loading/saving of savefiles to use the SaveFileManager interface, also converted the date/time code to use the ScummVM TimeDate structure.
svn-id: r53202
Diffstat (limited to 'engines/sword25/kernel/filesystemutil.cpp')
-rw-r--r-- | engines/sword25/kernel/filesystemutil.cpp | 6 |
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) { |