Commit Graph
50 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 eefa72afa1.

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
Alexandre Detiste 6c298e964f JANITORIAL: Typos detected with lintian & grep 2016-02-15 18:27:02 +01:00
Johannes Schickel 6dabb5c414 SWORD25: Call requested pixel format by its correct name. 2015-12-14 05:16:12 +01:00
Filippos Karapetis fa9e2f7b29 SWORD25: Disable unused code
Thanks to fingolfin for pointing out this unused code
2014-12-07 17:49:52 +02:00
Eugene Sandulenko 5c706dde27 SWORD25: Switch to common TransparentSurface 2014-06-15 15:43:25 +03:00
Johannes Schickel bad7cdd3a6 SWORD25: Make GPL headers consistent in themselves. 2014-02-18 02:39:38 +01:00
Ori Avtalion aa0f307e06 ALL: Require DECLARE_SINGLETON to be used in the Common namepsace
Silences the clang warning:

  static data member specialization of '_singleton' must
  originally be declared in namespace 'Common'; accepted as a C++0x
  extension [-Wc++0x-extensions]

Wrapping "namespace Common {}" around the macro assignment causes clang
to complain about a spurious semicolon, and removing the semicolon at
the end of the macro causes some editors to misbehave.

Changing the requirement of using the macro in one namespace (the
global) to another (Common) seems a small price to pay to
silence a warning.
2011-06-30 22:41:41 +03:00
Matthew Hoops 9539017ee3 ALL: initialise -> initialize 2011-05-25 11:17:11 -04:00
strangerke 69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02: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
Max Horn 73f04118f3 COMMON: Rename Error to ErrorCode, introduce new Error class 2011-04-18 18:22:02 +02:00
dhewg e5b6146b78 SWORD25: Init volume levels on startup 2011-03-19 16:49:16 +01:00
David Turner 9961e054d0 SWORD25: Fix linker breakage from DECLARE_SINGLETON() in renderObjectRegistry.h.
svn-id: r55490
2011-01-24 00:46:06 +00:00
Filippos Karapetis 1250785822 SWORD25: Replaced BS_ASSERT() with assert()
svn-id: r55464
2011-01-23 15:01:24 +00:00
Filippos Karapetis 00a0f8d15d SWORD25: Removed the custom log class and replaced it with warning/error/debugC calls
svn-id: r55462
2011-01-23 14:49:50 +00:00
David Turner 7ad677afc8 SWORD25: Added basic debugging console to engine (Command Key Disabled)
Since SWORD25 uses Debug Channels, this allows for the interactive setting of debugflags as well as providing a base for adding further debugging commands.

However, this is not currently usable as the command key code is commented out.
This is due to the event loop which reads keyboard input being buried 2 object layers below the Engine VM object and I am unsure how the engine development team would want this exposed / interfaced.

svn-id: r54184
2010-11-10 04:30:24 +00:00
Paul Gilbert b53d12da23 SWORD25: Standardised savegame filenames, start on advanced engine features
svn-id: r53901
2010-10-28 09:51:56 +00:00
Max Horn e0d5db0bb8 SWORD25: 'Implement' RTL support & add TODOs about missing feature support
svn-id: r53837
2010-10-25 22:41:48 +00:00
Max Horn e761f76653 SWORD25: Get rid of most of the 'kernel service/superclass' code
svn-id: r53835
2010-10-25 22:41:25 +00:00
Max Horn 7cc8811a5c SWORD25: Merge classes PNGLoader, ImageLoader and ImageLoaderManager
This looses some flexibility when it comes to supporting other image
formats. But since the game does not use other image formats, this seems
rather irrelevant, compared to how much simpler the code now is.

svn-id: r53755
2010-10-24 01:32:15 +00:00
Max Horn 85e3ddc309 SWORD25: Add ImageLoaderManager, get rid of last globally constructed object
This also gets rid of an evil use of atexit.

svn-id: r53753
2010-10-24 01:30:53 +00:00
Eugene Sandulenko 6629efc676 SWORD25: Enforced code formatting rules in rest of the engine
svn-id: r53626
2010-10-19 21:03:33 +00:00
Max Horn 4caa1d40a8 SWORD25: Simplify log listener code (and get rid of another global constructor)
svn-id: r53610
2010-10-19 09:44:48 +00:00
Max Horn 8f5eee67db SWORD25: Destroy singletons upon engine exit (untested, may lead to crash upon exit)
svn-id: r53609
2010-10-19 09:44:29 +00:00
Max Horn f52b31a05f SWORD25: Typo, cleanup
svn-id: r53478
2010-10-15 12:18:41 +00:00
Max Horn 550073ee04 SWORD25: Do not use Kernel::GetService directly anymore
svn-id: r53477
2010-10-15 12:18:19 +00:00
Eugene Sandulenko 54ccc8f4c9 SWORD25: Enforced code naming conventions in script/*
svn-id: r53391
2010-10-13 00:08:28 +00:00
Eugene Sandulenko 91d1d9eb09 SWORD25: Fix startup
svn-id: r53383
2010-10-13 00:04:04 +00:00
Eugene Sandulenko 8582c1ad57 SWORD25: Enforse code naming conventions in PackageManager and Sword25Engine
svn-id: r53380
2010-10-13 00:02:51 +00:00
Eugene Sandulenko 2143afde6c SWORD25: Add support for language patch
svn-id: r53377
2010-10-13 00:01:04 +00:00
Eugene Sandulenko 08ce5575fa SWORD25: Put all sound-related debug output under debug flag.
svn-id: r53370
2010-10-12 23:57:26 +00:00
Eugene Sandulenko deb7dcc8bb SWORD25: Fix warnings
svn-id: r53292
2010-10-12 23:18:58 +00:00
Eugene Sandulenko 18e2534b63 SWORD25: Fix color format
svn-id: r53285
2010-10-12 23:16:23 +00:00
Eugene Sandulenko e9d6fa094e SWORD25: Fix colors
svn-id: r53274
2010-10-12 23:12:20 +00:00
Eugene Sandulenko c875856d20 SWORD25: Implemented script tracing
To turn on traces turn on debugchannel 'script' and then use
debug level as a bitmask:
  1 - show function calls
  2 - show function exits
  3 - show every line

svn-id: r53267
2010-10-12 23:09:53 +00:00
Paul Gilbert 0186984671 SWORD25: Fixed return value of AppEnd
svn-id: r53264
2010-10-12 23:08:12 +00:00
Eugene Sandulenko b01994a53b SWORD25: removed BS_ prefix from rest of the classes.
The things which are intentionally left with the prefix:
BS_LOG, BS_ASSERT, BS_Rect, BS_String.

svn-id: r53261
2010-10-12 22:59:01 +00:00
Eugene Sandulenko be44216e5c SWORD25: eliminated BS_ prefix in all but kernel/
svn-id: r53259
2010-10-12 22:55:59 +00:00
Eugene Sandulenko a21b148a9b SWORD25: Added possibility to run from extracted game.
Still doesn't start though

svn-id: r53251
2010-10-12 22:48:45 +00:00
Eugene Sandulenko c97aee132a SWORD25: Fix log output.
svn-id: r53238
2010-10-12 22:44:11 +00:00
Eugene Sandulenko 72130c284d SWORD25: Fix couple more warnings
svn-id: r53236
2010-10-12 22:43:36 +00:00
Eugene Sandulenko 47904bc7b2 SWORD25: Mass-astyle.
svn-id: r53222
2010-10-12 22:35:55 +00:00
Paul Gilbert 87553862d9 SWORD25: Converted remainder of Kernel/ folder
svn-id: r53216
2010-10-12 22:28:21 +00:00
Paul Gilbert b9044a6a27 SWORD25: Changing service registration to use replacement ScummVM Package Manager
svn-id: r53201
2010-10-12 22:20:11 +00:00
Eugene Sandulenko 293bf95c01 SWORD25: Replacing headers with ScummVM ones plus original (C)
svn-id: r53188
2010-10-12 22:13:00 +00:00
Paul Gilbert ee24f79ca1 SWORD25: Added and fixed the remaining engine setup/execution/free code
svn-id: r53185
2010-10-12 22:00:10 +00:00
Paul Gilbert e78b19a650 SWORD25: Converted kernel/kernel.cpp to compile under ScummVM
This commit creates a skeleton detection and engine class, as well as code necessary to call the kernel initiation.
The kernel/kernel.cpp has been converted to compile under ScummVM, along with all dependant header files.

svn-id: r53184
2010-10-12 21:55:38 +00:00
Eugene Sandulenko 82e819d48a SWORD25: Initial dummy engine
svn-id: r53168
2010-10-12 21:02:41 +00:00