aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/core/project_item.cpp
AgeCommit message (Collapse)Author
2018-06-30TITANIC: Address readSavegameHeader compiler warningDavid Fioramonti
A function had a bool return that was not being used now it is checked and an error is issued if the call fails.
2018-05-07TITANIC: Enforce code formatting guidelinesAdrian Frühwirth
2018-04-22TITANIC: Fix discrepancy between readSavegameHeader() declaration and definitionAdrian Frühwirth
This should have been part of commit 00e59a3122.
2018-04-22Revert "TITANIC: Fix memory leak due to save thumbnail changes"Adrian Frühwirth
This was a miss in commit 00e59a3122. The new parameter was supposed to be called skipThumbnail and default to true instead. For consistency's sake (the rest of the tree uses skipThumbnail, not loadThumbnail) I'm reverting this and will separately update the declaration to how it should have been from the beginning. Thanks dreammaster!
2018-04-22TITANIC: Fix memory leak due to save thumbnail changesPaul Gilbert
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-24Merge pull request #1010 from dreammaster/debugger_paramsPaul Gilbert
GUI: Support double quoted debugger parameters
2017-09-18TITANIC: Fix memory leak on thumbnails when loading savegamesPaul Gilbert
2017-09-05TITANIC: Allow GMM loading from the copyright and continue dialogPaul Gilbert
2017-09-04TITANIC: Support full view specification in debugger room commandPaul 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-07TITANIC: Hook in the original game's secret cheat roomPaul Gilbert
You can either use a special Ctrl-C key combination, or use the 'cheat' command in the debugger
2017-08-05TITANIC: Don't show invalid meta info for original game savesPaul Gilbert
2017-08-03TITANIC: Allow last saved game to be loadedDavid Fioramonti
2017-08-03TITANIC: Max saved games const centralizedDavid Fioramonti
Before the const specifying the max number of save/load games was in titanic.h, core/project_item.cpp, main_game_window, and detection.cpp. Since they all inherit from titanic.h they should just use the const there. Also the saved game const in core/project_item.cpp was named differently so I also changed that.
2017-07-23TITANIC: Adjust the switch/case fall-through commentsBastien Bouclet
This way, GCC 7 does not generate a warning for those cases when -Wimplicit-fallthrough=3 is enabled, which is now the default.
2017-06-17TITANIC: Further fix for tracking total play timePaul Gilbert
2017-06-17TITANIC: Fix maintaining total playtime for savegamesPaul Gilbert
2016-12-26TITANIC: Hide any active PET text cursor when loading a savegamePaul Gilbert
2016-12-19TITANIC: Fix crash loading games when speech is activePaul Gilbert
2016-10-28TITANIC: Fix scanning for rooms in parseViewPaul Gilbert
2016-10-09JANITORIAL: Remove trailing spacesEugene Sandulenko
2016-09-05TITANIC: Convert some dynamic_casts back to static_cast as appropriatePaul Gilbert
2016-09-01TITANIC: Convert many static_casts to dynamic_castPaul Gilbert
2016-07-24TITANIC: Add semicolon after EMPTY_MESSAGE_MAP macro usagesPaul Gilbert
2016-07-20TITANIC: Fixes for saving & loading savegamesPaul Gilbert
2016-07-20TITANIC: Fixes for saving/loading savegame headersPaul Gilbert
2016-07-20TITANIC: Add missing engine saving functionalityPaul Gilbert
2016-07-15TITANIC: Removed const modifier from all saveable objectsPaul Gilbert
Turns out that CGameObject::save regenerates the _movieRangeInfo list. So the const suffix can no longer be used for the entire hierarchy
2016-07-15TITANIC: Set up empty message targets for classes without messagesPaul Gilbert
2016-07-15TITANIC: Adding savegame header load/save methodsPaul Gilbert
2016-03-19TITANIC: Added CGameManager::viewChangePaul Gilbert
2016-03-19TITANIC: Added various preLoad methodsPaul Gilbert
2016-03-12TITANIC: Implement various post-load methodsPaul Gilbert
2016-03-08TITANIC: More game manager setupPaul Gilbert
2016-03-08TITANIC: Implemented CTreeItem::findByNamePaul Gilbert
2016-03-08TITANIC: Add const suffix to many tree item methodsPaul Gilbert
2016-03-08TITANIC: Fleshing out CProjectItem methodsPaul Gilbert
2016-03-08TITANIC: Moved CompressedFile class into simple_file.hPaul Gilbert
One of the joys of working with ScummVM was that, using existing Common functionality, the entirety of the original's CompressedFile class could be reduced to a couple of lines. As such, CompressedFile doesn't really need it's own seperate files anymore.
2016-03-08TITANIC: Fix crash when compressed newgame.st file was closedPaul Gilbert
2016-03-04TITANIC: Move CPetControl and direct support classes to new folderPaul Gilbert
2016-03-04TITANIC: Beginnings of CPetControl support classesPaul Gilbert
2016-02-25TITANIC: Rename of sub-folders for better clarityPaul Gilbert