diff options
author | Paul Gilbert | 2010-10-20 11:11:09 +0000 |
---|---|---|
committer | Paul Gilbert | 2010-10-20 11:11:09 +0000 |
commit | 14e82dbe7f25c1a31cc8afbc712ee0246c7706dc (patch) | |
tree | 4c147a55e4eef66b8f50c756bac695c32c51170b /engines/sword25/gfx | |
parent | 66ecd08868b83d166e6e01c2e4c2b66eecdbe99a (diff) | |
download | scummvm-rg350-14e82dbe7f25c1a31cc8afbc712ee0246c7706dc.tar.gz scummvm-rg350-14e82dbe7f25c1a31cc8afbc712ee0246c7706dc.tar.bz2 scummvm-rg350-14e82dbe7f25c1a31cc8afbc712ee0246c7706dc.zip |
SWORD25: Added description field to savegames
This stores the date and time of when the game was saved, since ScummVM doesn't support getting a file's age like the original engine did.
svn-id: r53638
Diffstat (limited to 'engines/sword25/gfx')
-rw-r--r-- | engines/sword25/gfx/image/b25sloader.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/sword25/gfx/image/b25sloader.cpp b/engines/sword25/gfx/image/b25sloader.cpp index 693b616e01..01bb9b39a0 100644 --- a/engines/sword25/gfx/image/b25sloader.cpp +++ b/engines/sword25/gfx/image/b25sloader.cpp @@ -45,7 +45,7 @@ static Common::String loadString(Common::ReadStream &in, uint maxSize = 999) { while (!in.eos() && (result.size() < maxSize)) { char ch = (char)in.readByte(); - if ((ch == '\0') || (ch == ' ')) + if (ch == '\0') break; result += ch; @@ -65,8 +65,9 @@ uint findEmbeddedPNG(const byte *fileDataPtr, uint fileSize) { // Headerinformationen der Spielstandes einlesen. uint compressedGamedataSize; - loadString(stream); - loadString(stream); + loadString(stream); // Marker + loadString(stream); // Version + loadString(stream); // Description Common::String gameSize = loadString(stream); compressedGamedataSize = atoi(gameSize.c_str()); loadString(stream); |