aboutsummaryrefslogtreecommitdiff
path: root/engines/teenagent/detection.cpp
AgeCommit message (Collapse)Author
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-03-08ENGINES: Make variable names of AdvancedMetaEngine conform to our guidelines.Johannes Schickel
_singleid -> _singleId _gameids -> _gameIds _guioptions -> _guiOptions
2016-02-25TEENAGENT: Let listSaves return list sorted on slot numbers.Johannes Schickel
2016-01-26TEENAGENT: Only request actual save slots in listSaves.Johannes Schickel
2014-02-18TEENAGENT: Make GPL headers consistent in themselves.Johannes Schickel
2014-02-17TEENAGENT: Indent REGISTER_PLUGIN_* for consistency.Johannes Schickel
2013-05-02COMMON: Change kPlatformPC to kPlatformDOSMatthew Hoops
"PC" was very ambiguous and now it matches what we show in the GUI. This also corrects sword2's platform to Windows.
2012-07-16TEENAGENT: Further symbol migration associated with saveStates.D G Turner
2012-07-04TEENAGENT: Fix erroneous files in savegame listing.D G Turner
This was achieved by making the detection pattern stricter to avoid matching the dat file or other extraneous files in the savegame path. This fixes bug #3539774 "TEENAGENT : teenagent.dat considered as a savegame". Also did some minor formatting and string function usage cleanup.
2012-07-03TEENAGENT: Slight cleanup in querySaveMetaInfos.Johannes Schickel
2011-11-16LAUNCHER: Introduce GUIO0() in order to replace GUIO1(GUIO_NONE)Strangerke
2011-10-23AD: Switched rest of the engines to new GUIOEugene Sandulenko
2011-10-23TEENAGENT: Improve code formatting.Johannes Schickel
I used astyle and fixed some incorrect changes from it manually.
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-06-14DETECTOR: Pass allFiles to AdvancedMetaEngine::fallbackDetect()Max Horn
Also reorder the parameters of composeFileHashMap, placing the "return value" first.
2011-06-14DETECTOR: Merge ADParams into AdvancedMetaEngineMax Horn
2011-06-10TEENAGENT: Switch to alternate AdvancedMetaEngine, avoid ADParamsMax Horn
2011-06-10ENGINES: Change incorrect use of 'target' to 'gameid'Max Horn
2011-05-22ENGINES: Further unify engine namesThierry Crozat
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
2010-11-07ENGINES: Unify code layout of all ADParams instancesMax Horn
svn-id: r54105
2010-11-01COMMON: Rename String::printf() to String::format()Max Horn
This is a first step towards getting rid of all uses of regular printf, fprintf, vprintf, vfprintf, puts, fputs, etc. in our codebase. The name format() reflects the purpose of the function, and parallels String.format() in Java, boost::format, and others. svn-id: r54004
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-04-28added cd-version detection and cdlogo.res supportVladimir Menshakov
svn-id: r48831
2010-03-20removed local scopedptrVladimir Menshakov
svn-id: r48335
2010-03-20textual cleanupsVladimir Menshakov
svn-id: r48333
2010-03-20removed auto_ptr semantics in a favor of boost's scoped_ptrVladimir Menshakov
svn-id: r48329
2010-03-20fixed file leak, cleanupsVladimir Menshakov
svn-id: r48319
2010-03-18COMMON: Get rid of Common::StringListMax Horn
svn-id: r48287
2010-01-25Strip trailing spaces/tabs.Johannes Schickel
svn-id: r47541
2010-01-02added unlogic logoVladimir Menshakov
svn-id: r46903
2009-12-25Consistency change: Use uniform copyright strings in getOriginalCopyright.Johannes Schickel
svn-id: r46543
2009-10-18added thumbnails for the save states. removed snprintf's. Vladimir Menshakov
svn-id: r45219
2009-09-15capitalized game titleVladimir Menshakov
svn-id: r44102
2009-09-15TEEN: More code formatting & whitespace changes (automatically generated ↵Max Horn
with astyle) svn-id: r44101
2009-09-05removed magic exe offsets, added teenagent.dat support.Vladimir Menshakov
svn-id: r43954
2009-09-04TEEN:Max Horn
* don't use "using namespace", instead put stuff into its correct namespace * when using #include, always prefix engine header files with the engine name * some cleanup svn-id: r43945
2009-09-03fixed invalid hash sumVladimir Menshakov
svn-id: r43930
2009-09-03added detection structures with exe offsets.Vladimir Menshakov
svn-id: r43929
2009-09-03fixed engines order, added svn:keywords properties.Vladimir Menshakov
svn-id: r43925
2009-09-03imported teenagent engine sources.Vladimir Menshakov
svn-id: r43922