aboutsummaryrefslogtreecommitdiff
path: root/engines/dm/loadsave.cpp
AgeCommit message (Collapse)Author
2018-04-07ALL: Load savegame thumbnail only when necessaryAdrian Frühwirth
This commit introduces the following changes: 1. Graphics::loadThumbnail() Now returns a boolean and takes a new argument skipThumbnail which defaults to false. In case of true, loadThumbnail() reads past the thumbnail data in the input stream instead of actually loading the thumbnail. This simplifies savegame handling where, up until now, many engines always read the whole savegame metadata (including the thumbnail) and then threw away the thumbnail when not needed (which is in almost all cases, the most common exception being MetaEngine::querySaveMetaInfos() which is responsible for loading savegame metadata for displaying it in the GUI launcher. 2. readSavegameHeader() Engines which already implement such a method (name varies) now take a new argument skipThumbnail (default: true) which is passed through to loadThumbnail(). This means that the default case for readSavegameHeader() is now _not_ loading the thumbnail from a savegame and just reading past it. In those cases, e.g. querySaveMetaInfos(), where we actually are interested in loading the thumbnail readSavegameHeader() needs to explicitely be called with skipThumbnail == false. Engines whose readSavegameHeader() (name varies) already takes an argument loadThumbnail have been adapted to have a similar prototype and semantics. I.e. readSaveHeader(in, loadThumbnail, header) now is readSaveHeader(in, header, skipThumbnail). 3. Error handling Engines which previously did not check the return value of readSavegameHeader() (name varies) now do so ensuring that possibly broken savegames (be it a broken thumbnail or something else) don't make it into the GUI launcher list in the first place.
2017-01-31DM: Fix GCC warningsStrangerke
2016-10-09JANITORIAL: Remove trailing spacesEugene Sandulenko
2016-09-20DM: Fix two memory leaksStrangerke
2016-09-19DM: Fix 2 GCC warnings, some renamingStrangerke
2016-09-19DM: Some more renamingStrangerke
2016-09-16DM: Fix some more non-MSVC warnings, remove a useless variableStrangerke
2016-09-16DM: More renaming in gfx enumsStrangerke
2016-09-11DM Rename enum members in dm.h and dialog.hStrangerke
2016-09-04DM: Change savegame signature to DM21 instead of DMDM. That breaks savegames ↵Strangerke
compatibility.
2016-09-03DM: Polishing in loadsaveStrangerke
2016-09-03DM: Some more fixes concerning pointer formattingStrangerke
2016-09-03DM: Clean up includesBendegúz Nagy
Swap <> to "" with scummvm files Add dm/ prefix to dm files Reorder includes to system files, dm files
2016-08-27DM: More renaming in DungeonMan, move some arraysStrangerke
2016-08-27DM: Remove custom warning functionStrangerke
2016-08-26DM: Finish the renaming of class membersStrangerke
2016-08-26DM: Rename ObjectMan and ProjExpl membersStrangerke
2016-08-26DM: Renaming in MenuMan definitionStrangerke
2016-08-26DM: Rename functions and class members of GroupManStrangerke
2016-08-26DM: Rename variables and functions of DisplayManStrangerke
2016-08-26DM: Rename class members in EventManagerStrangerke
2016-08-26DM: Rename DungeonMan class membersStrangerke
2016-08-26DM: Rename functions of DMEngine and DialogManStrangerke
2016-08-26DM: Renaming of Champion and ChampionMan functionsStrangerke
2016-08-26DM: Add target and original platform to save filesBendegúz Nagy
2016-08-26DM: Add proper save headerBendegúz Nagy
2016-08-26DM: Remove some warningsBendegúz Nagy
2016-08-26DM: Add file error checking for save gameBendegúz Nagy
2016-08-26DM: Fix regression (pressure plate), fix compilationStrangerke
2016-08-26DM: Add loading from gameBendegúz Nagy
2016-08-26DM: Fix double load when loading from launcherBendegúz Nagy
2016-08-26DM: Make ScummVM's save dialog open up when savingBendegúz Nagy
2016-08-26DM: Make resume button load up ScummVM's global load dialogBendegúz Nagy
2016-08-26DM: Make thumbnail capture the dungeonBendegúz Nagy
2016-08-26DM: Add support for loading from launcherBendegúz Nagy
2016-08-26DM: Correct language from GR_GRE to DE_DEUBendegúz Nagy
2016-08-26DM: Add localizationBendegúz Nagy
2016-08-26DM: Add missing localization warnings and query function for languageBendegúz Nagy
2016-08-26DM: Add dialog choice to savegameBendegúz Nagy
2016-08-26DM: Add missing code related to palettesBendegúz Nagy
2016-08-26DM: Add stub methods, clean up warnings and some commentsBendegúz Nagy
2016-08-26DM: Some renaming, add a couple of STUBSStrangerke
2016-08-26DM: Add f444_endGame and checks for Common::EVENT_QUITBendegúz Nagy
2016-08-26DM: Fix compilation with MSVC9, some light renamingStrangerke
2016-08-26DM: Debug loading savegames, add missing save loading partsBendegúz Nagy
2016-08-26DM: Finish f433_processCommand140_saveGameBendegúz Nagy
2016-08-26DM: refact f293_drawAllChampionStates, f283_viAltarRebirth, ↵Strangerke
f327_isProjectileSpellCast and f326_championShootProjectile. Rename Direction.
2016-08-26DM: Fix segfault with resume gameBendegúz Nagy
2016-08-26DM: Refactor f322_championPoison, f284_setPartyDirection, f316_deleteScent, ↵Strangerke
f317_addScentStrength, f310_getMovementTicks and f294_isAmmunitionCompatibleWithWeapon
2016-08-26DM: Refactor f304_addSkillExperience, change _g313_gameTime to int32Strangerke