Commit graph

19 commits

Author SHA1 Message Date
Eugene Sandulenko
ba666dfc32 PRINCE: Fixed game type for bundled Russian version 2018-05-06 19:33:44 +02:00
Adrian Frühwirth
13a08a0bb0 PRINCE: Add play time metadata to savegames 2018-05-06 00:00:38 +02:00
Eugene Sandulenko
c234630931 PRINCE: Initial support for packed Russian version 2018-05-05 23:17:35 +02:00
Bastien Bouclet
ff4498bda3 PRINCE: Push down the AD includes 2018-05-01 12:48:05 +02:00
Adrian Frühwirth
5d1ed6d68f PRINCE: Update detected game titles 2018-04-29 08:57:23 +02:00
Adrian Frühwirth
00e59a3122 ALL: Load savegame thumbnail only when necessary
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.
2018-04-07 09:26:20 +02:00
Adrian Frühwirth
8ed5969ea1 PRINCE: Let listSaves return list sorted on slot numbers 2018-03-26 01:07:32 +02:00
Eugene Sandulenko
6a56599435 PRINCE: Added detection for alternative Russian version 2017-11-20 22:32:28 +01:00
Eugene Sandulenko
c8dca57555 PRINCE: Refactored detection code into widely accepted schema 2016-10-21 10:32:48 +02:00
Eugene Sandulenko
fab199d37e JANITORIAL: Make GPL headers uniform 2016-09-03 12:46:38 +02:00
Alexander Tkachev
b665fc933d ALL: Make simpleSaveNames() a MetaEngineFeature
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-24 16:07:55 +06:00
Johannes Schickel
3aecd8ef2a ENGINES: Make variable names of ADGameDescription conform to our guidelines.
gameid     -> gameId
guioptions -> guiOptions
2016-03-08 19:01:38 +01:00
lukaslw
ce1e776eee PRINCE: Add loading during startup and syncSoundSettings features 2014-11-09 01:42:54 +01:00
lukaslw
8ad075a764 PRINCE: Allow RTL engine feature 2014-11-09 00:11:34 +01:00
lukaslw
3c29d61f67 PRINCE: Code clean-up 2014-08-01 17:38:04 +02:00
lukaslw
08d781b6ad PRINCE: Game saving - basic implementation 2014-07-29 02:25:42 +02:00
Kamil Zbróg
8c85eff622 PRINCE: code formating fixed 2013-11-04 11:28:10 +00:00
Kamil Zbróg
5357724657 PRINCE: code cleanup 2013-10-24 20:31:08 +01:00
Kamil Zbróg
1a55957647 PRINCE: Detection of german and polish game 2013-10-11 01:01:56 +01:00