125 Commits

Author SHA1 Message Date
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
Eugene Sandulenko
940b2a20f1 Revert "COMMON: Change way the Singleton instances are instantiated"
This reverts commit eefa72afa1978a9dea10f5b1833fcc8f58a3468e.

With this patch ConfigManager is broken.
2017-07-10 21:17:41 +02:00
Thierry Crozat
eefa72afa1 COMMON: Change way the Singleton instances are instantiated
This fixes tons of warnings with clang from a recent xcode version on
macOS (and possibly other systems) complaining that an instantiation
of _singleton is required but no definition is available.
2017-07-10 21:11:20 +02:00
Ben Castricum
6f38c1e55d ALL: game state => saved game 2016-11-29 20:15:20 +01:00
Thierry Crozat
3e08c33c35 GUI: Add checkbox and config option to enable/disable graphics filtering 2016-10-13 01:45:01 +01:00
Thierry Crozat
a87a702eb2 ALL: Homogeneize use of 'saved game' in messages 2016-09-18 16:40:34 +01:00
Eugene Sandulenko
19be66f150 ENGINES: Make splash more robust for non-standard screen sizes 2016-06-17 12:47:00 +02:00
Eugene Sandulenko
0d369f716e METAENGINE: Hint the compiler that we intentionally ignore pollEvents() return value 2016-02-18 10:30:35 +01:00
Ori Avtalion
85fa44c32d JANITORIAL: Remove #includes of list_intern.h 2016-01-02 15:32:38 +02:00
Torbjörn Andersson
a2d3ffa882 ENGINES: Free memory used by splash screen when done with it 2015-12-28 10:21:48 +01:00
Eugene Sandulenko
1ed0a64579 ENGINES: Print version information 2015-12-24 00:07:22 +01:00
Eugene Sandulenko
9c50ffda33 ENGINES: Replaced logo background with orange 2015-12-22 19:09:13 +01:00
Eugene Sandulenko
8360d3cd6f GUI: Do not show splash when ran from launcher 2015-11-11 21:36:27 +01:00
Eugene Sandulenko
18bc506a21 ENGINES: Fix typo 2015-11-09 00:45:52 +01:00
Eugene Sandulenko
3ced58e189 ENGINES: Add ScummVM splash 2015-11-07 22:35:10 +01:00
Torbjörn Andersson
cc916625d9 SCUMM: Add a "chained games manager"
This replaces the somewhat ugly use of the config manager to store
the chained games.
2014-12-30 10:47:51 +01:00
Johannes Schickel
53e83147be ENGINES: Make GPL headers consistent in themselves. 2014-02-18 02:39:34 +01:00
Johannes Schickel
651e280801 ENGINES: Introduce method Engine::initializePath which sets up SearchMan.
This replaces the hardcoded addition of the game path in runGame in
base/main.cpp by an engine configurable one.
2014-01-22 18:07:06 +01:00
Johannes Schickel
46323074e7 OPENGL: Add new generic OpenGL (ES) backend.
This backend is based on ideas of the old OpenGL backend, of the Android GL
backend and of the iPhone GL backend.
2013-10-19 22:12:01 +02:00
Matthew Hoops
f235ef143c ENGINES: Honor the default to 1x flag for OpenGL modes 2013-01-08 10:32:08 -05:00
D G Turner
aa26d5def4 ENGINES: Add error handling for GMM Gamestate Load/Save Usage.
As indicated by wjp, the Global Main Menu (GMM) did not check or report
on the returned error state from saveGameState() and loadGameState() usage.
This corrects this and adds a MessageDialog report of any failure.
2012-02-21 22:30:29 +00:00
Tarek Soliman
40b68b41c7 KEYMAPPER: Make engine keymap init and cleanup more generic 2011-12-30 12:36:11 -06:00
Johannes Schickel
4b433c2961 ENGINES: Handle speech_mute in syncSoundSettings.
This assures we always mute all speech sounds, when the user selects
subtitles only mode. Hopefully no engine abuses the speech sound type for
other sounds, since that would make them gone now too. Then again I would
consider this an utter abuse of the speech sound type...
2011-11-13 22:25:19 +01:00
Littleboy
e978a6afb7 ENGINES: Use the new taskbar error notification methods in the engines defaultErrorHandler() 2011-08-06 15:27:43 -04:00
Eugene Sandulenko
54f5383356 TASKBAR: Set taskbar to error on engine error() 2011-08-06 11:30:49 +01:00
Bastien Bouclet
8b89660069 GUI: Zero is a valid save slot number.
Fixes loading from slot 0 using the GMM.
2011-07-02 22:01:47 +02:00
athrxx
1a05efa8ed GUI: fix bug #2822778
(Savegames now get loaded after GMM dialogue execution. This avoids mouse cursor glitches (e.g. mouse cursors which get changed during loadGameState() being popped when the dialogue closes).
2011-06-25 15:54:36 +02:00
Thierry Crozat
f4d20223be I18N: Make the unsupported game warning translatable 2011-06-20 23:12:26 +01:00
Tarek Soliman
4d0bba314d ENGINES: Warn user about games marked with ADGF_UNSTABLE flags
ADGF_UNSTABLE is always warned about.
ADGF_TESTING is only warned about when running
configure with --enable-relase.

Both warnings are subject to the enable_wip_game_warning
config option.
2011-06-16 13:37:13 -05:00
Thierry Crozat
06bbb57ad7 I18N: Make many more GUI MessageDialog strings translatable 2011-06-13 22:19:18 +01:00
Max Horn
477d6233c3 ENGINES: Change 2nd param of Engine::saveGameState to Common::String 2011-06-02 18:31:59 +02:00
Max Horn
86240bb0dc ENGINES: Get rid of some s(n)printf calls 2011-06-02 18:31:58 +02:00
strangerke
69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Max Horn
2fa63ca015 COMMON: Forbid use of getcwd&getwd; add macro to enable unistd.h compatibility 2011-05-03 14:30:25 +02:00
Paul Gilbert
c6fa23a3d1 JANITORIAL: Add in necessary include files to fix compilation in MSVC 2011-04-28 22:32:12 +10:00
Ori Avtalion
9414d7a6e2 JANITORIAL: Reduce header dependencies in shared code
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
Johannes Schickel
6b0ccbb095 AUDIO: Renamed mute related functions in Mixer.
This renames setMuteForSoundType to muteSoundType and getMuteForSoundType to
isSoundTypeMuted.
2011-04-16 18:30:45 +02:00
Johannes Schickel
f9a459d70e ENGINES: Make Engine::syncSoundSettings use the Mixer's mute flag directly.
This fixes an annoying behavior in the Sword2 option's dialog, which set all
sound type volumes to 0, in case it was opened when the user used the global
mute setting.
2011-04-13 23:48:51 +02:00
dhewg
46e397fb25 ENGINES: Mute kPlainSoundType in Engine::syncSoundSettings()
The "Mute all" option rarely muted all audio streams, since we have
this abomination called kPlainSoundType (and there is no volume slider
for this type). Both, not-really-muting, and adding yet another slider is
a horrible user experience imho - especially on handheld ports.
So mute this sound in the default implementation, and unmute it to the
maximum volume.
When an engines has a volume level settings for sounds it plays with
this type, it should overwrite said member and set it there.
2011-03-19 17:58:17 +01:00
Max Horn
90c3ae2493 ENGINES: Change GUIErrorMessage to take param by ref, not by copy 2011-03-18 14:43:53 +01:00
Johannes Schickel
ee6853daf2 GUI: Fix default mode bug in initCommonGFX.
Formerly when a game which used defaultTo1XScaler was run with "-gdefault" from
command line, it was run with a 2x scaler in case of the SDL backend, since it
defaults to 2x (see SdlGraphicsManager::getDefaultGraphicsMode).
2011-03-01 04:57:10 +01:00
dhewg
93fdcbfa05 ENGINES: We have resetGraphicsScale(), lets use it
If highres games pass defaultTo1XScaler=true to initGraphics(),
use resetGraphicsScale() instead of hardcoding "1x" (which doesn't
exist on the OpenGL backend)
If an OpenGL mode is selected, it now doesn't switch back to plain
SDL now for those games.
2011-02-25 20:49:48 +01:00
Max Horn
42ab839dd6 AUDIO: Rename sound/ dir to audio/
svn-id: r55850
2011-02-09 01:09:01 +00:00
Max Horn
668adaa461 GUI: Rename gui/GuiManager.* to gui/gui-manager.*
svn-id: r54265
2010-11-16 10:19:01 +00:00
Max Horn
75c6e66874 COMMON: Get rid of the debug() output formatter
Now Engine::errorString is only used by error(), as its name suggests.
This also resolves the inconsistency between debug & debugN.

svn-id: r54023
2010-11-01 20:41:32 +00:00
Johannes Schickel
dac9493069 ENGINE: Rename resetTotalPlayTime to setTotalPlayTime.
I also extended the comment for it to show two possible use cases.

svn-id: r53895
2010-10-27 22:52:02 +00:00
Johannes Schickel
2ad28b8cd5 ENGINE: Generalize SCUMM play time counting and move it into Engine.
This implements Max's idea on -devel
("Re: [Scummvm-devel] ATTN Engine authors: Advanced engine features") from
27.10.2010 on 11:12PM CEST.

Unlike the SCUMM implementation it stores the play time as ms instead of s.

The SCUMM engine was adapted to use this instead to reduce code duplication.

svn-id: r53892
2010-10-27 22:37:51 +00:00
Torbjörn Andersson
c91a07229a JANITORIAL: Removed most punctuation at end of warning() and error()
Our warning() and error() functions always add an exclamation mark
to the end of the message anyway.

svn-id: r52791
2010-09-18 10:55:16 +00:00
Max Horn
1d4c82885d DEBUGGER: Simplify how our console debugger works / is used
* Remove _isAttached member var and isAttached method
* Engines now always call the onFrame method; whether it does
  something is decided by the debugger class resp. its subclasses
* Make detach() protected instead of private, so that subclasses
  can invoke it
* Remove _detach_now member var (call detach() instead).
* Rename _frame_countdown to _frameCountdown and properly
  document it.
* Add more doxygen comments
* Cleanup

svn-id: r50963
2010-07-17 18:38:42 +00:00
Johannes Schickel
09b4f7cbed Define WIN32_LEAN_AND_MEAN before including windows.h.
This will cause our code to include less functionality, but might on the other hand fasten up the compilation.

svn-id: r50346
2010-06-26 21:55:52 +00:00