Commit Graph

2013 Commits

Author SHA1 Message Date
Eugene Sandulenko
fe0193b914 JANITORIAL: Remove unndeded "common/translation.h" include 2020-08-27 20:26:45 +02:00
Eugene Sandulenko
b53a7db0da ALL: Switch to Common::hypotenuse() 2020-06-06 15:08:52 +02:00
mataniko
581a6ec7d6 JANITORIAL: Rename kSupportsRTL to kSupportsReturnToLauncher 2020-05-12 10:36:38 +02:00
mataniko
06242a712b JANITORIAL: Rename EVENT_RTL
Now that ScummVM is adding RTL support, the EVENT_RTL should be disambigious that it is for returning to launcher
2020-05-12 10:36:38 +02:00
Paul Gilbert
120ee778f2 TSAGE: Fix crash clicking on Options sound button 2020-03-10 08:00:41 +02:00
Paul Gilbert
9f175c4053 ENGINES: Cleanup of savegame filenames generation
This removes filename methods when it matched the Engine method.
Secondly, ensuring there was an overriden getSaveStateName method
for engines that didn't do the standard target.00x save filenames
2020-02-16 15:44:28 -08:00
Paul Gilbert
a00e44ba6c ENGINES: Merge saveGameState virtual methods into a single one 2020-02-16 15:44:28 -08:00
Paul Gilbert
0107aace67 TSAGE: Refactor to use Engine debugger 2020-02-16 13:07:19 +02:00
Bastien Bouclet
b0e26f1989 TSAGE: Remove duplicate override keywords 2020-02-09 12:58:21 +01:00
Bastien Bouclet
5bf2783433 TSAGE: Add override keywords 2020-02-09 12:43:16 +01:00
Eugene Sandulenko
07d3918387 TSAGE: Added override keywords 2020-02-06 23:46:47 +01:00
Paul Gilbert
5b80320525 ENGINES: Adding override keyword to hasFeature methods 2020-02-04 20:04:11 -08:00
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