aboutsummaryrefslogtreecommitdiff
path: root/engines/saga/detection.cpp
AgeCommit message (Collapse)Author
2018-06-03SAGA: Don't show pause message in saved thumbnailDavid Fioramonti
Fixes Trac#10008. Previously, the game would show a paused game message in the thumbnail when the game was saved using the gmm.
2018-05-10ENGINES: Change MetaEngine::findGame to return a plain game descriptorBastien Bouclet
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.
2016-08-24ALL: Make simpleSaveNames() a MetaEngineFeatureAlexander Tkachev
Added it into hasFeature() of all engines which returned `true` in simpleSaveNames() before. As mentioned in #788, SCI is not always using simple names, so it doesn't have such feature now.
2016-08-24ALL: Add MetaEngine::simpleSaveNames()Alexander Tkachev
Engines with "simple" savenames would support "Run in background" in save/load dialog and gradual save slots unlocking. Other engines save/load feature would be locked until save sync is over.
2016-03-08ENGINES: Make variable names of AdvancedMetaEngine conform to our guidelines.Johannes Schickel
_singleid -> _singleId _gameids -> _gameIds _guioptions -> _guiOptions
2016-02-25SAGA: Let listSaves return list sorted on slot numbers.Johannes Schickel
2016-01-26SAGA: Only request actual save slots in listSaves.Johannes Schickel
2014-02-18SAGA: Make GPL headers consistent in themselves.Johannes Schickel
2012-11-11SAGA: Add support for played timeFilippos Karapetis
2012-07-03SAGA: Slight cleanup in querySaveMetaInfos implementation.Johannes Schickel
Saves are writable and deletable by default, there is no need to mark them explicitly as such.
2011-10-29JANITORIAL: Remove unnecessary semicolonsTorbjörn Andersson
2011-08-07GRAPHICS: Simplify the interface of Graphics::loadThumbnail().Christoph Mallon
Now it returns the Surface, so the caller does not need to create one and pass it.
2011-07-09SAGA: Removed several game flags, which are now found more reliably on the flyFilippos Karapetis
- The logo screens of all ITE versions are shown correctly now - Wyrmkeep versions, demo versions with scene substitutes, demos with mono music and demo versions with LE VOX encoded voices are all found automatically now
2011-06-14DETECTOR: Separate code for handling obsolete gameids from advanced detectorMax Horn
This includes a renaming of ADObsoleteGameID to Engine::ObsoleteGameID, and AdvancedDetector::findGameID now is Engines::findGameID. Doxygen comments were added or improved
2011-06-14DETECTOR: Merge ADParams into AdvancedMetaEngineMax Horn
2011-06-10SAGA: Switch to alternate AdvancedMetaEngine, avoid ADParamsMax Horn
2011-06-10ENGINES: Change incorrect use of 'target' to 'gameid'Max Horn
2011-06-02SAGA: Replace snprintf() usage with Common::String::format()D G Turner
Safer and less portability issues.
2011-06-02ENGINES: Change 2nd param of Engine::saveGameState to Common::StringMax Horn
2011-05-16ENGINES: Unify engine namesThierry Crozat
This unifies the engine names in MetaEngine::getName() and the credits. In particular drop "Engine" or "engine" from the names when it was present and use expanded names in credits when the MetaEngine uses it (e.g. "Beneath a Steel Sky" instead of "BASS").
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-04-12COMMON: Replace MKID_BE by MKTAGMax Horn
MKID_BE relied on unspecified behavior of the C++ compiler, and as such was always a bit unsafe. The new MKTAG macro is slightly less elegant, but does no longer depend on the behavior of the compiler. Inspired by FFmpeg, which has an almost identical macro.
2011-04-06SAGA: Fixed bug #3275973 - "IHNM: Dialog options vanish"md5
2010-10-23SAGA: Add some const qualifiers to SagaEngine methodsMax Horn
svn-id: r53737
2010-10-22SAGA: replace Actor::_pathCell, Anim::*, Converse::text, IsoMap::*, ↵Andrew Kurushin
Music::_songTable, ObjectMap::*, PalAnim::*, Scene::sceneLut, SndRes::_fxTable* malloc based arrays with Common::Array implementation add ByteArray type fix debug Tile Hittest frame drawing debug 0x%x => 0x%X svn-id: r53719
2010-06-15AdvancedDetector: Add new parameter directoryGlobs.Eugene Sandulenko
Without this parameter mass detection gave tons of false alarms. Use globbing for narrowing down the depth search. svn-id: r49788
2010-06-14Extended advancedDetector with depth parameter.Eugene Sandulenko
Now AD can search nested directories. By default it is turned off, but there is new parameter to ADParameters struct. Usually value of 2 is good enough for all purposes. svn-id: r49653
2010-03-18COMMON: Get rid of Common::StringListMax Horn
svn-id: r48287
2009-09-24Reverted parts of revisions #44298, #44299 and #44300, to prevent warnings ↵Filippos Karapetis
and issues in compilers which don't support NORETURN svn-id: r44314
2009-09-24Fixed some more warnings about unreachable codeFilippos Karapetis
svn-id: r44300
2009-07-27Fix bug #2827459 "ITE: Ingame GUI does not list slots 96-99", by defining in ↵Johannes Schickel
SagaMetaEngine that the last valid save slot for SAGA is slot 95. svn-id: r42845
2009-06-06Added game GUI options to advancedDetector and updated all enginesEugene Sandulenko
svn-id: r41272
2009-05-29Changed SaveFileManager methods to take Common::String params (instead of ↵Max Horn
char pointers) svn-id: r41000
2009-03-05Renamed MetaEngine::getCopyright() to getOriginalCopyright() to better match ↵Jordi Vilalta Prat
the meaning of the returned string, as discussed some time ago in scummvm-devel svn-id: r39132
2009-01-29Moved AdvancedDetector from common/ to engines/Max Horn
svn-id: r36132
2009-01-04Got rid of explicit game sound infoFilippos Karapetis
svn-id: r35727
2009-01-04Improved handling of sound resourcesFilippos Karapetis
svn-id: r35724
2009-01-02Wrapped more engine-specific code around appropriate ifdefsFilippos Karapetis
svn-id: r35679
2009-01-02Let compiled subengines be visible in About dialog.Eugene Sandulenko
svn-id: r35677
2009-01-02- Split the IHNM script functions into a different fileFilippos Karapetis
- Added two new defines, ENABLE_IHNM and ENABLE_SAGA2 (enabled by default), which can be used to remove the parts of the SAGA engine which are specific to IHNM and SAGA 2 games. Hopefully, this will reduce the size of the engine even more for platforms with little memory (e.g. the Nintendo DS) svn-id: r35672
2009-01-01Whoa! Removing trailing spaces.Eugene Sandulenko
svn-id: r35648
2008-12-29- IHNM Mac loads correctly againFilippos Karapetis
- Removed isBigEndian from GameSoundInfo - Removed GF_BIG_ENDIAN_DATA - Stopped loading the options panel for non-interactive ITE demos (it doesn't exist) - Fixed crash when exiting from non-interactive ITE demos svn-id: r35615
2008-12-22logicalWidth -> widthFilippos Karapetis
logicalHeight -> height svn-id: r35488
2008-12-22- Split the SAGA resource manager in 3 different ones, depending on the ↵Filippos Karapetis
resource type (RSC for ITE, RES for IHNM and HRS for DINO/FTA2). The SAGA 2 HRS resource manager is still a stub - Added detection for the voice file of FTA2 svn-id: r35484
2008-12-21- Added some stubs for the SAGA2 games dino and fta2Filippos Karapetis
- Stopped loading the isomap and puzzle game modules for IHNM, as they are not used for that game (this saves some memory for IHNM) - Removed getDisplayWidth() and getDisplayHeight() svn-id: r35473
2008-12-21Cleaned up the mess with game IDs and game types: removed game types, ↵Filippos Karapetis
reduced the game IDs and added game features where necessary svn-id: r35467
2008-11-10CleanupFilippos Karapetis
svn-id: r34988
2008-11-10SAGA save games now contain thumbnails and creation date/time (visible from ↵Filippos Karapetis
the GMM save/load screens) svn-id: r34986
2008-11-09- The GMM save dialog is now working for all engines which support the ↵Filippos Karapetis
appropriate features - Added a new method to the MetaEngine class, getMaximumSaveSlot(), and implemented it in all engines for which the listSavefiles() method is implemented (it goes together with the listSavefiles method). It is used to fill the unused save slots in the save/load dialogs of each engine, so that the user can create new save games in empty slots - Unified the save/load dialog list numbering in the GMM load/save screens and in the load screen of the main menu (before a game is started) svn-id: r34963