aboutsummaryrefslogtreecommitdiff
path: root/engines/lastexpress/game/savegame.cpp
AgeCommit message (Collapse)Author
2018-10-20LASTEXPRESS: save/load sound stateEvgeny Grechnikov
Warning: breaks compatibility with previous savefiles. They were mostly broken anyway, locking any NPC who waited for kActionEndSound when savefile was created.
2018-10-18LASTEXPRESS: better names in sound codeEvgeny Grechnikov
Refactoring, no changes in behaviour.
2018-08-26LASTEXPRESS: multiple fixes in NPC logicEvgeny Grechnikov
Checked the logic against the original game (to be precise, DOS English version from GOG, although I think AI logic has no significant differences with other versions). Fixed a *lot* of errors with varying visibility for the user. Also, save+exit+load sometimes resulted in memory corruption like ((EntityParametersSSII*)(new EntityParametersIIII))->param8 = 0; load operation did not restore the correct type of NPC logic context, the default one was used (which also has the smallest sizeof). Should be fixed now. Save+load is still unusable because it locks everybody waiting for kActionEndSound (the sound state is not restored), but, at least, it should not corrupt the memory. Hopefully.
2015-11-27LASTEXPRESS: Removing excess checkEugene Sandulenko
2014-02-18LASTEXPRESS: Make GPL headers consistent in themselves.Johannes Schickel
2012-08-27LASTEXPRESS: Implement more savegame loadingLittleboy
- Rename existing function to load the last saved game - Remove loadgame debugger command
2012-08-27LASTEXPRESS: Cleanup savegameLittleboy
- Check for valid stream in readValue/writeValue functions - Properly initialize/clear members
2012-08-27LASTEXPRESS: Remove some unreachable codeLittleboy
2012-08-01LASTEXPRESS: Implement savegame read compressionLittleboy
2012-07-31LASTEXPRESS: Implement savegame write compressionLittleboy
2012-07-30LASTEXPRESS: Switch savegame reading to use new read methodLittleboy
- Disable savegame compression
2012-07-29LASTEXPRESS: Reorganize savegame code to prepare for compressed savegames ↵Littleboy
support
2012-07-27LASTEXPRESS: Add menu-related warnings and turn some warnings into errorsLittleboy
2012-07-27LASTEXPRESS: More include re-organizationLittleboy
2012-07-14LASTEXPRESS: Remove duplicated include statementsLittleboy
2011-11-03LASTEXPRESS: Fix read size parameter.Johannes Schickel
2011-11-02LASTEXPRESS: Fix incorrect read() callEugene Sandulenko
2011-07-08LASTEXPRESS: Prefix savegame filenames with "lastexpress"Littleboy
2011-06-28LASTEXPRESS: Cleanup commentsLittleboy
2011-06-28LASTEXPRESS: Move sound queue related functions to a separate classLittleboy
- Implement missing queue reset function - Cleanup SoundManager::playLoopingSound()
2011-06-23LASTEXPRESS: Move Menu class to a separate folderLittleboy
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-01-26LASTEXPRESS: Add some more error handling to Savegame and Sound classesJulien Templier
- Add some const modifiers where applicable - Add some missing casts svn-id: r55541
2010-11-19LASTEXPRESS: Poll events when loading savegames to prevent freezing the ↵Julien Templier
application svn-id: r54368
2010-11-11LASTEXPRESS: Fix some memory leaksJulien Templier
- Reading past the end of file in SaveLoad::init - Missing deallocation of cache in SoundManager - Missing deallocation of coords in SceneHotspot - Missing deallocation of event handlers in LastExpressEngine::setEventHandlers - Missing deallocation of InSaveFile in SaveLoad::isSavegameValid - Missing deallocation of frames in Menu as reported by digitall svn-id: r54193
2010-10-27LASTEXPRESS: Implement game loading (last save entry only)Julien Templier
svn-id: r53883
2010-10-27LASTEXPRESS: Cleanup game savingJulien Templier
- Move loading of game stream to separate function - Add checks for NULL in functions using _savegame - Add expected saved size for sound & savepoints svn-id: r53881
2010-10-26LASTEXPRESS: Read savegame in blocks instead of bytesWillem Jan Palenstijn
svn-id: r53854
2010-10-26LASTEXPRESS: Implement loading of savegame entry headersJulien Templier
svn-id: r53847
2010-10-26LASTEXPRESS: More savegame workJulien Templier
- Implement SaveLoad::writeEntry - Implement missing saveLoadWithSerializer functions for all serialized classes & structs - Add stub for SaveLoad::computePadding svn-id: r53845
2010-10-26LASTEXPRESS: Silence GCC warningTorbjörn Andersson
svn-id: r53843
2010-10-26LASTEXPRESS: Savegame support updateJulien Templier
- Implement Menu::startGame() properly - Add stubs functions for game restart - Made savegame headers serializable and moved validity checks inside struct definition - Implement create/init savegame functions - Add SavegameStream to be able to read/write to the same memory stream - Add stubs for setup, writeEntry & loadEntry functions svn-id: r53841
2010-10-19LASTEXPRESS: Fix some space formatting.Jordi Vilalta Prat
svn-id: r53629
2010-10-18LASTEXPRESS: Merge in the engine.Eugene Sandulenko
svn-id: r53579