aboutsummaryrefslogtreecommitdiff
path: root/engines/dm
AgeCommit message (Collapse)Author
2018-04-22JANITORIAL: Fix formattingAdrian Frühwirth
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.
2018-03-25DM: Fix drawSquareD0L() to match original rebuilt sourcesAdrian Frühwirth
The current implementation is shite ((c) Strangerke), so here is one which matches the rebuilt sources :-) Given that drawSquareD0R() is identical to the rebuilt sources already it's safe to assume that no refactoring has been done which could explain why drawSquareD0L() looks different. While we're at it, mark that (now correct) fallthrough as intentional to silence the current gcc7 warning.
2018-03-24JANITORIAL: Silence GCC 7 fallthrough warningsAdrian Frühwirth
Verified intentional.
2017-11-19EVENTS: Rename synthetic to kbdRepeatBastien Bouclet
2017-11-10ALL: Fix misuse of comma operatorColin Snover
2017-10-07ENGINES: Remove default1x scaler flagColin Snover
This flag is removed for a few reasons: * Engines universally set this flag to true for widths > 320, which made it redundant everywhere; * This flag functioned primarily as a "force 1x scaler" flag, since its behaviour was almost completely undocumented and users would need to figure out that they'd need an explicit non-default scaler set to get a scaler to operate at widths > 320; * (Most importantly) engines should not be in the business of deciding how the backend may choose to render its virtual screen. The choice of rendering behaviour belongs to the user, and the backend, in that order. A nearby future commit restores the default1x scaler behaviour in the SDL backend code for the moment, but in the future it is my hope that there will be a better configuration UI to allow users to specify how they want scaling to work for high resolutions.
2017-09-22DM: Fix leaking the save thumbnail MemoryWriteStreamDynamic bufferBastien Bouclet
2017-08-06JANITORIAL: Silence more GCC 7 warningsTorbjörn Andersson
There were all flagged as intentional fall throughs. I simply changed the comments to something GCC would recognize.
2017-04-18JANITORIAL: Remove superfluous semicolonsTorbjörn Andersson
2017-01-31DM: Fix GCC warningsStrangerke
2017-01-22DM: Fix formatingBendegúz Nagy
2017-01-20Fix crash at the first corridor and entrance doorBendegúz Nagy
Crash caused by missing DisplayMan::_derivedBitmapByteCount values
2017-01-20Silence valgrind error messagesBendegúz Nagy
2017-01-20Properly delete leaking DisplayMan::_tmpBitmapBendegúz Nagy
2017-01-19Fix regression introduced in 3ab3a85Bendegúz Nagy
2016-11-24DM: Add POTFILESrootfather
2016-10-30DM: Fix GCC warning (and potential bug)Strangerke
2016-10-11DM: Fix isSquareACorridorTeleporterPitOrDoor for the demo, set version of ↵Strangerke
demo to 2.0
2016-10-11DM: Handle demo dungeon fileStrangerke
2016-10-09DM: Add detection for an amiga demo versionStrangerke
2016-10-09DM: Remove useless variableStrangerke
2016-10-09JANITORIAL: Remove trailing spacesEugene Sandulenko
2016-09-28DM: More refactoringStrangerke
2016-09-26DM: reduce some more redirectionsStrangerke
2016-09-25DM: Some more work on dereferencingStrangerke
2016-09-25DM: reduce dereferencing some moreStrangerke
2016-09-24DM: Fix some CppCheck warningsStrangerke
2016-09-24DM: Fix styleStrangerke
2016-09-24DM: Reduce dereferencing of _dungeonMan in MovesensManStrangerke
2016-09-23DM: Get rid of some dereferencing in DungeonManStrangerke
2016-09-22DM: Some renaming, reduce dereferencingStrangerke
2016-09-22DM: Fix GCC warningStrangerke
2016-09-21DM: Fix GCC warnings reported by eriktorbjornStrangerke
2016-09-21DM: Rename GraphicIndice membersStrangerke
2016-09-20DM: Fix two memory leaksStrangerke
2016-09-20DM: Initialize some variablesStrangerke
2016-09-20DM: Janitorial - remove trailing spacesStrangerke
2016-09-20DM: Make use of TimeLineEventTypeStrangerke
2016-09-20DM: Rename TimelineEventType membersStrangerke
2016-09-19DM: Fix 2 GCC warnings, some renamingStrangerke
2016-09-19DM: Some more renamingStrangerke
2016-09-19DM: Change the definition of setMapAndTime, move SoundIndex enum to SoundManStrangerke
2016-09-19DM: Remove a couple of useless checksStrangerke
2016-09-19DM: Fix verbose warnings using GCCStrangerke
2016-09-19DM: Rename members of SoundIndexStrangerke
2016-09-18DM: Rename some more enumsStrangerke
2016-09-18DM: Rename members of Behavior, some more renamingStrangerke
2016-09-18DM: rename members of DescriptionMask, PanelContent, CreatureSize, CreatureMaskStrangerke
2016-09-18DM: Rename Creature masks, move SoundMode to sound.hStrangerke