aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/titanic.cpp
AgeCommit message (Collapse)Author
2018-12-19ENGINES: Add GUIErrorMessageFormat to replace duplicated functions (#1455)Cameron Cawley
2018-05-24JANITORIAL: Fix trailing whitespaceAdrian 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.
2017-09-17TITANIC: Create a separate g_language global in it's own filePaul Gilbert
I was becoming concerned with more and more files having to add the full engine definition and sub-classes thereof via titanic.h, just so the TRANSLATE macro could call getLanguage. This way, files just need to include the lightweight translation.h file instead
2017-09-05TITANIC: Allow GMM loading from the copyright and continue dialogPaul Gilbert
2017-09-05TITANIC: Hook up in-game sound sliders to ScummVM volumesPaul Gilbert
2017-08-28TITANIC: Fix crash opening GMM during startup & Continue dialogPaul Gilbert
2017-08-24TITANIC: Reduce header includes for titanic.hDavid Fioramonti
I reduced the header includes a lot in Titanic.h and forward declared when I could. Titanic.h was including a lot and a lot of functions that were including it were not using its API. This will help make it more clear which implementation files are using which class since they will just need to include which ones they need. I also moved the debug related items in Titanic.h into the debugger header. I also reordered several of the the header includes to be local to global.
2017-08-22TITANIC: Don't allow GMM loading in the middle of receiving mailPaul Gilbert
2017-08-20TITANIC: Pause the engine while the save/load dialogs are openBastien Bouclet
2017-08-18TITANIC: Allow GMM/F7 loading in prologue before player gets the PETPaul Gilbert
2017-08-18TITANIC: Implement F5 & F7 Saving and LoadingPaul Gilbert
2017-07-05TITANIC: Don't allow GMM save/loading during cutscenesPaul Gilbert
2017-07-02TITANIC: Don't allow saving during the Doorbot prologuePaul Gilbert
This works around a bug in the original where if you saved immediately after getting the PET, the savegame would put in in an invalid state
2017-06-20TITANIC: Show GUI error dialog if titanic.dat is missingPaul Gilbert
2017-04-16TITANIC: Extra debugging info for starfield movementPaul Gilbert
2017-02-12TITANIC: Rename CMusicWave to CMusicRoomInstrumentPaul Gilbert
2017-01-29TITANIC: Implemented CMusicWave startPaul Gilbert
2017-01-14TITANIC: Renamings and cleanup for lemon dispensorPaul Gilbert
2016-12-08TITANIC: Don't allow GMM Loading/Saving if the PET area is lockedPaul Gilbert
2016-11-15TITANIC: Fixes for freeing project and engine objects on exitPaul Gilbert
2016-11-14TITANIC: Fix freeing of video surfacesPaul Gilbert
2016-11-11TITANIC: Load more text strings from data filePaul Gilbert
2016-10-28TITANIC: Renames and adding debuggingPaul Gilbert
2016-10-26TITANIC: Fix loading of item descriptionsPaul Gilbert
2016-10-01TITANIC: Change copyPixel to not be a virtual methodPaul Gilbert
2016-09-11TITANIC: Extra loading logic and translation code for German versionPaul Gilbert
2016-08-22TITANIC: Implemented more game classesPaul Gilbert
2016-08-07TITANIC: Start of music player classPaul Gilbert
2016-07-24TITANIC: Fix crash loading Sentences/Default NPC dataPaul Gilbert
2016-07-24TITANIC: Finish TTbarbotScript process methodPaul Gilbert
2016-07-22TITANIC: Add support for arbitrary window event targetsPaul Gilbert
Also moved all standard game event methods to CMainGameWindow. This will allow for the Continue Save dialog to be added in and get events instead of the game window
2016-07-15TITANIC: Added CMovieManager classPaul Gilbert
2016-07-15TITANIC: Adding savegame header load/save methodsPaul Gilbert
2016-07-15TITANIC: Beginnings of CCreditText classPaul Gilbert
2016-07-15TITANIC: Move replacement string arrays into TTparser, added NUMBERS arrayPaul Gilbert
2016-07-15TITANIC: Moved other static arrays from Titanic engine to dat filePaul Gilbert
2016-07-10TITANIC: Refactor CTitleEngine to use CFilesManager for PE resourcesPaul Gilbert
2016-07-10TITANIC: More script handler setupPaul Gilbert
2016-07-10TITANIC: In progress implementation of PET RemotePaul Gilbert
2016-07-10TITANIC: Call method to initialize OSVideoSurface _map arrayPaul Gilbert
2016-07-10TITANIC: Implementing PET inventory populationPaul Gilbert
2016-04-09TITANIC: Fix deleting moviesPaul Gilbert
2016-04-01TITANIC: Implementing CPetInventory setupPaul Gilbert
2016-04-01TITANIC: Simplified item strings setupPaul Gilbert
2016-04-01TITANIC: Added item stringsPaul Gilbert
2016-03-24TITANIC: Implementing more CTelevision message handlersPaul Gilbert
2016-03-22TITANIC: First scene starting to be displayedPaul Gilbert
2016-03-21TITANIC: Implementing view draw codePaul Gilbert
2016-03-18TITANIC: Create Event manager classPaul Gilbert