aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/kernel/persistenceservice.cpp
AgeCommit message (Collapse)Author
2011-06-29SWORD25: Implement persistence functions for soundengineEugene Sandulenko
Now sound is properly saved/restored. Implemented savegame versioning. Compatibility with old saves pertained.
2011-06-20ALL: Remove trailing whitespacesMax Horn
This tries to make our code a bit more compliant with our code formatting conventions. For future use, this is the command I used: git ls-files "*.cpp" "*.h" | xargs sed -i -e 's/[ \t]*$//'
2011-05-26SWORD25: Fix making multiple saves at the same time.Alyssa Milburn
This adds a missing seek. Thanks to [md5] for guessing the cause.
2011-05-23SWORD25: Remove obsolete FORBIDDEN_SYMBOL_ALLOW_ALL definesMax Horn
2011-05-14SWORD25: Fix format string warning.eriktorbjorn
2011-05-13SWORD25: Stop linking directly against zlib.md5
Also, don't compress game data in newer saves, as the whole saved game is compressed anyway
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-05-05SWORD25: Remove thumbnails from the cache when saving a new gamemd5
2011-05-05SWORD25: Initial code for showing savegame thumbnailsmd5
There is currently a bug and only the thumbnail of the first save slot is shown
2011-05-05SWORD25: Removed the saved game filename from the savegame meta info structmd5
2011-05-05SWORD25: Added some FIXMEs in the save game and thumbnail codemd5
Also, translated some comments
2011-05-02SWORD25: Fix compilation, caused by zlib.h including unistd.hJohannes Schickel
2011-01-23SWORD25: Removed the custom log class and replaced it with ↵Filippos Karapetis
warning/error/debugC calls svn-id: r55462
2010-11-19COMMON: Split common/stream.h into several headersMax Horn
svn-id: r54385
2010-10-28SWORD25: Comment out unused static variable.Johannes Schickel
svn-id: r53909
2010-10-28SWORD25: Standardised savegame filenames, start on advanced engine featuresPaul Gilbert
svn-id: r53901
2010-10-25SWORD25: Add FIXME about savegame names; cleanupMax Horn
svn-id: r53839
2010-10-25SWORD25: Simplify FS 'wrapper' code a bit, add FIXME commentsMax Horn
The save system of this engine currently partially bypasses the SaveFileManager API, by (abusing) the fact that the Lua engine allows creating files in arbitrary places (it exposes fopen, fread, fwrite etc.). This is used to create a 'config.lua' configuration file. This makes it non-portable. In addition, the filenames used for the savestates ("0.b25s") do not comply with our naming conventions for engine savestates. It should be possible to overcome all this, but it might require hacking the Lua engine; or we could try to replace some of the BS2.5 script functions with our own, dynamically. svn-id: r53838
2010-10-20SWORD25: Added description field to savegamesPaul Gilbert
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
2010-10-19SWORD25: Enforced code formatting rules in rest of the engineEugene Sandulenko
svn-id: r53626
2010-10-15SWORD25: Do not use Kernel::GetService directly anymoreMax Horn
svn-id: r53477
2010-10-13SWORD25: Renamed getInstance() -> instance()Max Horn
svn-id: r53430
2010-10-13SWORD25: Enforced code naming conventions in math/*Eugene Sandulenko
svn-id: r53392
2010-10-12SWORD25: Further savegame work, including savegame screenshotsPaul Gilbert
This handles saving (but not yet re-loaded display) of screenshots into savegame files. It also changes the original engine behaviour of temporarily saving the screenshots in a file 'tmp.png' to keeping the raw PNG file data in a memory block. svn-id: r53373
2010-10-12SWORD25: Fix warningEugene Sandulenko
svn-id: r53368
2010-10-12SWORD25: Fixes to the savegame saving codePaul Gilbert
svn-id: r53351
2010-10-12SWORD25: Comply to the code conventions for several classesEugene Sandulenko
svn-id: r53310
2010-10-12SWORD25: unsigned int -> uintEugene Sandulenko
svn-id: r53309
2010-10-12SWORD25: Removed now redundant 'using namespace std' linesPaul Gilbert
svn-id: r53263
2010-10-12SWORD25: removed BS_ prefix from rest of the classes.Eugene Sandulenko
The things which are intentionally left with the prefix: BS_LOG, BS_ASSERT, BS_Rect, BS_String. svn-id: r53261
2010-10-12SWORD25: eliminated BS_ prefix in all but kernel/Eugene Sandulenko
svn-id: r53259
2010-10-12SWORD25: Portability fixes. Now compiles and runs under Linux.Eugene Sandulenko
svn-id: r53240
2010-10-12SWORD25: Mass-astyle.Eugene Sandulenko
svn-id: r53222
2010-10-12SWORD25: Converted further files from old hashmap.h to Common::HashMapPaul Gilbert
This commit includes a class pointer hash function added in objectregistry.h that should be double-checked to see if it's correct. svn-id: r53211
2010-10-12SWORD25: Converted Savegame Load/Save codePaul Gilbert
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
2010-10-12SWORD25: Removed leftover include referencesEugene Sandulenko
svn-id: r53192
2010-10-12SWORD25: get rid of custom md5.cpp and Windows-specific debug stuffEugene Sandulenko
All version ID generation is useless for ScummVM as we have our own clear versions. Thus removing all of that. svn-id: r53191
2010-10-12SWORD25: Replacing headers with ScummVM ones plus original (C)Eugene Sandulenko
svn-id: r53188
2010-10-12SWORD25: Compilation fixesEugene Sandulenko
Majority of files now compile under Windoze. svn-id: r53182
2010-10-12SWORD25: Fixed rest of the include pathsEugene Sandulenko
svn-id: r53181
2010-10-12SWORD25: Importing original sourcesEugene Sandulenko
svn-id: r53171