Commit graph

1406 commits

Author SHA1 Message Date
Eugene Sandulenko
7e82e748bf SHERLOCK: Fix shadowing warning 2018-06-29 09:37:27 +02:00
Eugene Sandulenko
19e3e229b6 SHERLOCK: Fix warning 2018-06-29 09:14:17 +02:00
Paul Gilbert
afc48cfb0e Revert "SHERLOCK: Disable cache for uncompressed resources"
This reverts commit 20d5a67f8b.
2018-05-05 14:36:14 -04:00
Adrian Frühwirth
1ff3282acd SHERLOCK: Display savegame metadata in launcher/GMM
Saving/loading already handles savegame creation/play time, the
information just wasn't displayed until now because the MetaEngine
features weren't being reported as supported which I assume to be
an oversight.

Fixes Trac#10006.
2018-05-02 23:45:25 +02:00
Adrian Frühwirth
a20f90cbb7 JANITORIAL: Fix formatting 2018-04-22 00:56:21 +02:00
Adrian Frühwirth
9bee9e1ba6 JANITORIAL: Fix whitespace 2018-04-19 12:08:31 +02:00
Adrian Frühwirth
cf96f3f709 JANITORIAL: Indent GFXTransaction code blocks 2018-04-15 16:45:25 +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
114bedc5fe SHERLOCK: Let listSaves return list sorted on slot numbers 2018-03-26 01:07:32 +02:00
Alexander Reim
20d5a67f8b SHERLOCK: Disable cache for uncompressed resources 2017-12-22 14:13:22 +01:00
Colin Snover
432fd522d2 ENGINES: Remove default1x scaler flag
This flag is removed for a few reasons:

* Engines universally set this flag to true for widths > 320,
  which made it redundant everywhere;
* This flag functioned primarily as a "force 1x scaler" flag,
  since its behaviour was almost completely undocumented and users
  would need to figure out that they'd need an explicit non-default
  scaler set to get a scaler to operate at widths > 320;
* (Most importantly) engines should not be in the business of
  deciding how the backend may choose to render its virtual screen.
  The choice of rendering behaviour belongs to the user, and the
  backend, in that order.

A nearby future commit restores the default1x scaler behaviour in
the SDL backend code for the moment, but in the future it is my
hope that there will be a better configuration UI to allow users
to specify how they want scaling to work for high resolutions.
2017-10-07 12:30:29 -05:00
Paul Gilbert
da4d4d8272 SHERLOCK: Remove redundant derived Serializer class 2017-08-07 19:08:03 -04:00
Bastien Bouclet
ec49730711 VIDEO: Allow setting the mixer sound type used to play audio tracks 2017-07-27 06:40:07 +02:00
Paul Gilbert
53b0b82e87 SHERLOCK: SS: Fix Italian fan detection entry language 2017-05-09 20:57:47 -04:00
Paul Gilbert
a795c450bb SHERLOCK: Add detection entry for Italian fan translation 2017-05-07 22:51:05 -04:00
Ben Castricum
b041618a42 ALL: Remove comma before the word 'instead' 2016-11-29 20:22:19 +01:00
Ben Castricum
38eb27212d ALL: savegame => saved game 2016-11-29 20:15:13 +01:00
Paul Gilbert
41d1e0a415 SHERLOCK: 3DO: Fixes to allow game to start 2016-10-21 20:01:14 -04:00
Eugene Sandulenko
dead4aa014 JANITORIAL: Remove trailing spaces 2016-10-09 14:59:58 +02:00
Paul Gilbert
1bf73b9cf1 SHERLOCK: SS: Fix hotspots remaining after items are picked up 2016-10-04 21:57:16 -04:00
Paul Gilbert
b87318805f SHERLOCK: Add debugger command to alter game flags 2016-09-15 18:43:39 -04:00
Paul Gilbert
832c078dee SHERLOCK: RT: Improved handling for journal scrollbar 2016-09-13 20:11:15 -04:00
Paul Gilbert
307cd0db4a SHERLOCK: RT: Fix crash using invalid number keys in conversations 2016-09-07 22:35:10 -04:00
Paul Gilbert
0a130d8dcf SHERLOCK: RT: Fix hang on dragging mouse outside Inventory verbs list 2016-09-06 22:59:16 -04:00
Paul Gilbert
f8fc43be99 SHERLOCK: RT: Fix hang clicking on edge of inventory verb list borders 2016-09-03 16:36:03 -04:00
Paul Gilbert
a69eebe53b SHERLOCK: SS: Fix German journal crash moving tobacco box 2016-09-03 15:44:58 -04: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
Alexander Tkachev
ab1d160ec8 ALL: Add MetaEngine::simpleSaveNames()
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-08-24 16:07:55 +06:00
Eugene Sandulenko
bb9c755bcc SHERLOCK: Fix even more warnings 2016-08-01 12:07:42 +03:00
Eugene Sandulenko
6412e40b38 SHERLOCK: Fix another warning 2016-08-01 11:55:48 +03:00
Eugene Sandulenko
2b0297755d SHERLOCK: Fix warning 2016-08-01 11:46:18 +03:00
Eugene Sandulenko
aa2eec09be SHERLOCK: Fix debug channel initialization 2016-07-28 11:44:04 +03:00
Thierry Crozat
78a85f581d SHERLOCK: Fix compilation error with some gcc versions
Without this change the Apple gcc 4.0 compiler (the last version to
support the MacOS X 10.4 SDK) generate a lot of errors regarding
trying to initialise references to Sherlock::Scalpel::Talk with the
address to a Sherlock::Talk object, or about forward declarations of Sherlock::Scalpel::Talk.
2016-06-15 22:00:36 +01:00
Strangerke
013406abdd SHERLOCK: Fix uninitialized variables 2016-06-13 07:33:17 +02:00
Eugene Sandulenko
989749b6e5 SHERLOCK: Use # as savefile matching pattern 2016-06-08 10:17:16 +02:00
Torbjörn Andersson
e963f8bc60 SHERLOCK: Silence very noisy GCC warning
Since 'w' and 'h' are members of ManagedSurface, using them as
input parameters to a method caused GCC to warn about them being
shadowed. For just about every file in the Sherlock engine...
2016-05-29 21:35:37 +02:00
Eugene Sandulenko
35186ae5b0 SHERLOCK: Fix warnings 2016-05-28 17:20:50 +02:00
Paul Gilbert
2b2dffc02c SHERLOCK: Remove redundant allocation in surface creation 2016-05-27 06:01:15 -04:00
Paul Gilbert
4a88f39cc9 SHERLOCK: Refactor Surface and Screen to not use virtual inheritance 2016-05-26 21:48:40 -04:00
Eugene Sandulenko
33abb6118f ALL: Change main engine header guard defines to <directory>_<engine>_H
Recently we started to use this as new semantics, although in the past
we used simly <engine>_H. Now these guard defines are consistent with
rest of the files which are used in the engines.
2016-05-17 18:21:30 +02:00
Eugene Sandulenko
875f591704 SHERLOCK: Further clarification of virtual destructors. Thanks to LordHoto. 2016-05-16 19:52:34 +02:00
Eugene Sandulenko
cbb403ff55 SHERLOCK: Remove non-virtual destructor which prevents the superclass one from execution. 2016-05-16 16:56:57 +02:00
Eugene Sandulenko
95884c396b SHERLOCK RT: Actually clear screen instead of a useless call. CID 1308097 2016-05-08 23:06:21 +02:00
Eugene Sandulenko
b731bbf804 JANITORIAL: Whitespace fixes 2016-05-08 23:05:42 +02:00
Paul Gilbert
c18c22798a SHERLOCK: RT: Fix some namespace comments 2016-05-07 12:28:55 -04:00
Ori Avtalion
3564032330 JANITORIAL: Reduce audio header dependencies 2016-04-14 16:10:21 +03:00
Paul Gilbert
663044f095 SHERLOCK: RT: Fix crasah showing items to Rose Hanchem 2016-04-09 15:17:17 -04:00
Torbjörn Andersson
64709482e6 SHERLOCK: Fix crash when searching the Serrated Scalpel journal
As far as I can tell, the lines I removed to draw the search box
are already handled by the call to makeField() above. Also, they
were drawing to the wrong surface, and one of them was in the
wrong direction, which is what triggered an assertion.
2016-04-09 09:33:17 +02:00
Torbjörn Andersson
701738e0c9 SHERLOCK: Put back line break that I accidentally removed.
Thanks to LordHoto for noticing.
2016-04-08 23:03:53 +02:00