Commit Graph

2001 Commits

Author SHA1 Message Date
D G Turner
27d26a49ea TSAGE: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
2019-11-28 02:10:52 +00:00
Bastien Bouclet
9c8bd056d6 ENGINES: Stop using 'single id' 2019-11-03 11:43:00 +01:00
Bastien Bouclet
4b42112721 ENGINES: Add an engine ID to all the engines 2019-11-03 11:43:00 +01:00
aviloria
0fd412ca16 TSAGE: Removed "pirated" flag from Spanish fanmade translation
TSAGE: Removed "pirated" flag from Spanish fanmade translation
2019-08-12 21:31:08 +03:00
Paul Gilbert
c68d17e9ac TSAGE: R2R: Add Spanish translation detection entry flagged as pirated
I decided it was worthwhile to have an entry for it, but flagged as
pirated, so we don't accidentally add it in as supported later on.
2019-08-08 20:19:25 -07:00
Paul Gilbert
efd594993d TSAGE: Don't allow saving in Ringworld copy protection dialog 2018-08-21 19:24:25 -07:00
Paul Gilbert
cce93d3b44 TSAGE: Fix ejecting disc from left cycle's drive in Ringworld 1 2018-08-20 20:02:13 -07:00
Paul Gilbert
11e33ba3fc JANITORIAL: Removing trailing spaces after int casts 2018-08-17 20:30:20 -07:00
Adrian Frühwirth
990a0c203a TSAGE: Enforce code formatting guidelines 2018-05-07 20:06:30 +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
Paul Gilbert
8c850f82ec TSAGE: R2R: Clicking F5 fro Options dialog 2017-12-16 17:49:33 -05:00
Paul Gilbert
5dad41851e TSAGE: R2R: Fix brief flash of UI when starting demo 2017-11-22 19:41:49 -05:00
Paul Gilbert
bf8e4f5dd0 TSAGE: R2R: Fix corruption of demo intro text 2017-11-22 19:12:40 -05:00
Paul Gilbert
13f74027e8 TSAGE: Fix loading savegames with unreferenced dynamic objects 2017-11-21 21:05:40 -05:00
Colin Snover
2e034c0550 TSAGE: Fix crash on RTL 2017-11-20 18:43:18 -06:00
Colin Snover
fe45300891 TSAGE: Fix deadlocks in audio code
Fixes Trac#6618, Trac#6638, Trac#7011.
2017-11-20 18:43:18 -06:00
Colin Snover
7fc9e381b8 TSAGE: Fix invalid C-style casts to unrelated classes 2017-11-20 18:43:18 -06:00
Colin Snover
b20670e564 TSAGE: Remove member access of null pointer 2017-11-20 18:43:17 -06:00
Thierry Crozat
2b00829f09
Merge pull request #1041 from criezy/variadic-undefined
Fix undefined behaviour in variadic functions
2017-11-10 22:20:54 +00:00
Thierry Crozat
b1ba071ea8 TSAGE: Fix undefined behaviour in variadic functions
Passing a type that undergoes default argument promotion as last
argument of a variadic function results in undefined behaviour.
2017-10-08 14:51:04 +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
0338733d4b TSAGE: BF: Add missing break to switch statement 2017-08-06 22:33:55 -04:00
Torbjörn Andersson
70a2ca8b7d JANITORIAL: Silence more GCC 7 warnings
All these fall through were marked as deliberate, so again I've only
changed the comment to silence GCC.
2017-08-06 13:30:51 +02:00
Hein-Pieter van Braam
78b2a76076 TSAGE: remove accidentally added file
Commit aee71314 seems to have accidentally added a temp file containing
a libtsage.a file. We remove it here.
2017-06-26 13:56:25 +02:00
Paul Gilbert
902ce47c05 TSAGE: R2R: Don't allow F8 to start credits when they're already on 2017-02-21 21:21:32 -05:00
Paul Gilbert
f66ead3074 TSAGE: R2R: Fix display of animations 2017-02-11 18:50:44 -05:00
Eugene Sandulenko
dead4aa014 JANITORIAL: Remove trailing spaces 2016-10-09 14:59:58 +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
aee713141b CLOUD: Make OutSaveFile start saves sync
It had to become a proxy class in order to do that.
finalize() starts the saves sync.
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
Hubert Maier
5216a4278a Fix TsAGE copyright sign 2016-05-29 15:14:55 +03:00
Paul Gilbert
559b9744bf TSAGE: Refactor GfxSurface and Screen to not use virtual inheritance 2016-05-26 23:01:34 -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
Strangerke
71885f3a28 TSAGE: R2R - Fix bug in scene 2425 2016-05-02 22:42:10 +02:00
Ori Avtalion
3564032330 JANITORIAL: Reduce audio header dependencies 2016-04-14 16:10:21 +03:00
Ori Avtalion
253e18c440 JANITORIAL: Reduce GUI header dependencies 2016-04-14 13:30:14 +03:00
Ori Avtalion
e9f196bb57 TSAGE: Reduce GUI header dependencies 2016-04-13 16:56:45 +03:00
Paul Gilbert
390487aa43 GRAPHICS: Cleanup of ManagedSurface and Screen classes 2016-03-17 18:35:17 -04:00
Paul Gilbert
077250acfb TSAGE: Changed engine to use Graphics::ManagedSurface 2016-03-14 20:56:28 -04: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
Johannes Schickel
0b6befdcc5 ENGINES: Make variable names of AdvancedMetaEngine conform to our guidelines.
_singleid   -> _singleId
_gameids    -> _gameIds
_guioptions -> _guiOptions
2016-03-08 19:01:13 +01:00
Kirben
ae9190735d TSAGE: Remove ADGF_TESTING from Return to Ringworld. 2016-02-28 11:14:44 +11:00
Johannes Schickel
6d46577174 TSAGE: Let listSaves return list sorted on slot numbers. 2016-02-25 21:39:45 +01:00
Johannes Schickel
a0750ab487 TSAGE: Only request actual save slots in listSaves. 2016-01-26 16:35:30 +01:00
Paul Gilbert
1a9b30a9d3 TSAGE: Disable Sherlock logo code in TsAGE engine by default
Now that we have the code completely implemented inside the Sherlock
engine, we don't need the TsAGE engine detecting the Logo anymore
2015-08-16 14:24:18 -04:00
Matthew Hoops
bed9da8b9d AUDIO: Remove all AudioStream access to OPL 2015-07-07 20:19:47 -04:00
Matthew Hoops
5024ae136a TSAGE: Use the built-in OPL timer 2015-07-07 20:19:44 -04:00
Matthew Hoops
2e8f9dcec9 AUDIO: Remove the sample rate configuration from the OPL code 2015-07-07 20:19:42 -04:00
Matthew Hoops
f1f29302f5 AUDIO: Remove the legacy OPL API 2015-07-07 20:19:42 -04:00
Thierry Crozat
df665e5907 TSAGE: Add cast of nullptr to (const void *) in call to variadic functions
This should not be necessary, but this is for (at least) two reasons:
 - Our C++11 compatibility code simply defines nullptr as 0 (and 0
may have a different size to (const void *)0).
 - Xcode compiler on OS X throw an error without that cast (cannot
pass object of non-POD type nullptr through variadic method).
2015-06-02 00:04:06 +01:00