aboutsummaryrefslogtreecommitdiff
path: root/engines/hopkins/dialogs.cpp
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.
2014-02-18HOPKINS: Make GPL headers consistent in themselves.Johannes Schickel
2013-11-09HOPKINS: Replace cascades of if by switches for language checksStrangerke
2013-08-03HOPKINS: Take advantage of Surface::getPixels.Johannes Schickel
2013-08-03HOPKINS: Prefer getBasePtr over direct Surface::pixels access.Johannes Schickel
2013-07-14JANITORIAL: Remove trailing whitespaceSven Hesse
2013-05-07HOPKINS: Fix bug #3612036 - partially broken thumbnail - Courtesy of SylvainTVStrangerke
2013-04-26HOPKINS: Fix bug #3611566Strangerke
2013-04-11HOPKINS: Fix warningEugene Sandulenko
2013-04-10HOPKINS: Make the use of _mouseCursorId less verboseStrangerke
2013-04-10HOPKINS: Make engine less verbose by reducing some object namesStrangerke
2013-04-10HOPKINS: Janitorial: Remove useless codeStrangerke
2013-04-10HOPKINS: Remove useless object reference in DialogsManagerStrangerke
2013-04-10HOPKINS: Move _oldInventoryPosX to DialogsManager, remove a useless variableStrangerke
2013-04-10HOPKINS: Improve readability in DialogsManagerStrangerke
2013-04-09HOPKINS: Renaming some of the remaining graphics methodsPaul Gilbert
2013-04-05HOPKINS: JANITORIAL: Remove trailing spaces and tabsStrangerke
2013-04-05HOPKINS: Remove g_PTRNULStrangerke
2013-04-02HOPKINS: More renaming in ObjectsManagerStrangerke
2013-03-30HOPKINS: Rename display buffersStrangerke
2013-03-30HOPKINS: More renaming in ObjectsManagerStrangerke
2013-03-24HOPKINS: Move two more variables to ObjectsManager, make them privateStrangerke
2013-03-24HOPKINS: Set private more variables in DialogsManagerStrangerke
2013-03-24HOPKINS: Move inventory dialog display to DialogsManager, set _inventWin1 as ↵Strangerke
private
2013-03-20HOPKINS: Remove setParent() from TalkManagerStrangerke
2013-03-20HOPKINS: Remove setParent() from SaveLoadManager and ScriptManagerStrangerke
2013-03-20HOPKINS: Remove setParent() from MenuManager and ObjectsManagerStrangerke
2013-03-20HOPKINS: Remove setParent() from LinesManagerStrangerke
2013-03-20HOPKINS: Remove setParent() from GraphicsManagerStrangerke
2013-03-20HOPKINS: Remove setParent() from GlobalsStrangerke
2013-03-20HOPKINS: Remove setParent() from FontManagerStrangerke
2013-03-19HOPKINS: Remove setParent() from FileManagerStrangerke
2013-03-19HOPKINS: Remove setParent() from EventsManager and DebuggerStrangerke
2013-03-19HOPKINS: Remove setParent() from DialogsManagerStrangerke
2013-03-17Merge branch 'hopkins_dirtyRects'Paul Gilbert
Conflicts: engines/hopkins/anim.cpp engines/hopkins/computer.cpp engines/hopkins/dialogs.cpp engines/hopkins/graphics.cpp engines/hopkins/hopkins.cpp
2013-03-04HOPKINS: Some renamingStrangerke
2013-03-01HOPKINS: Rename some more savegame indexesStrangerke
2013-02-28HOPKINS: Forgotten file in previous commitStrangerke
2013-02-26HOPKINS: Get rid of a magic value in save/load dialogsStrangerke
2013-02-26HOPKINS: Some renaming in GraphicsManagerStrangerke
2013-02-25HOPKINS: Home-screen now displaying correctly with dirty rectsPaul Gilbert
2013-02-22HOPKINS: More renaming in Globals and ObjectsManagerStrangerke
2013-02-20HOPKINS: More misc renamingStrangerke
2013-02-20HOPKINS: Misc renamingStrangerke
2013-02-19HOPKINS: More renaming in SoundManagerStrangerke
2013-02-19HOPKINS: Misc renaming, some sound refactoringStrangerke
2013-02-16HOPKINS: Some more similar cleanupStrangerke
2013-02-15HOPKINS: Reorder includesStrangerke
2013-02-15HOPKINS: Move mouse data initialization to EventsManager, set mouse variable ↵Strangerke
as private