Commit Graph
136 Commits
Author SHA1 Message Date
Einar Johan Trøan Sømåen afdc87d99f TINSEL: Error out when trying to start Discworld Noir for now. 2020-10-31 00:09:03 +01:00
Filippos Karapetis 1f519f4738 TINSEL: Remove resolved TODO 2020-10-04 01:17:54 +03:00
Filippos Karapetis 94fae0c94d TINSEL: Move all dialog-related functions into a new Dialogs class 2020-10-04 01:15:23 +03:00
Filippos Karapetis 1bda5728a9 TINSEL: Reset more global vars upon engine destruction 2020-10-04 01:15:22 +03:00
Filippos Karapetis ae91b7e056 TINSEL: Reset more global vars upon engine destruction 2020-10-04 01:15:22 +03:00
Filippos Karapetis 9c9fc0cf2b TINSEL: Reset more global vars upon engine destruction 2020-10-04 01:15:22 +03:00
Filippos Karapetis 05e7af7c65 TINSEL: Reset more global vars upon engine destruction 2020-10-04 01:15:21 +03:00
Filippos Karapetis 672ab3cca3 TINSEL: Clear some more vars upon engine destruction 2020-10-04 01:15:21 +03:00
Filippos Karapetis 9322b11fd8 TINSEL: Move all scroll-related functions into a new Scroll class 2020-10-04 01:15:20 +03:00
Filippos Karapetis efb0acb24f TINSEL: Clear some global vars upon engine destruction 2020-10-04 01:15:20 +03:00
Filippos Karapetis bbf81aa216 TINSEL: Move code into class destructors 2020-10-04 01:15:20 +03:00
Filippos Karapetis ae2e05cbd3 TINSEL: Move all handle-related functions into a new Handle class 2020-10-04 01:15:19 +03:00
Filippos Karapetis bb54f3cd4f TINSEL: Move all actor-related functions into a new Actor class
Also, merge the two different SetMoverZ() functions
2020-10-04 01:15:18 +03:00
Filippos Karapetis 4f269c76d1 TINSEL: Move all cursor-related functions into a new Cursor class 2020-09-25 22:24:14 +03:00
Paul Gilbert 1c63d9b958 TINSEL: Fix Japanese DW1 using Japanese.smp/idx/txt 2020-07-10 19:07:52 -07:00
Filippos Karapetis 63ae50e790 TINSEL: Replace usage of NULL with nullptr 2020-02-29 02:21:41 +02:00
Filippos Karapetis 939f7cf2b7 TINSEL: Move all the music related functions into a new Music class 2020-02-23 14:51:01 +02:00
Filippos Karapetis 64b750ab2e TINSEL: Move background related functions into a new Background class 2020-02-22 18:41:39 +02:00
Filippos Karapetis eed258261a TINSEL: Merge PrimeBackground() and InitBackground() 2020-02-22 18:41:39 +02:00
Filippos Karapetis 6fa96182f7 TINSEL: Move font-related code into a new Font class
Also, remove some wrapper functions in tinlib.cpp
2020-02-22 18:41:39 +02:00
Paul Gilbert 17dc909e2c TINSEL: Refactor to use Engine debugger 2020-02-16 13:07:19 +02: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
Eugene Sandulenko 406b8cf33b TINSEL: Move debug channel registration to the very top of the engine constructor 2016-07-28 11:45:33 +03:00
Eugene Sandulenko 4dc60b525d TINSEL: Fix class initialization 2016-06-17 12:10:11 +02:00
Matthew Hoops aa6ff44440 BACKENDS: Only expose one set of functions for AudioCDManager
Engines should only have to call one set of functions and not decide between the two. In fact, the 'emulation' API was documented to just call the 'real CD' API.
2016-03-13 13:57:19 +01:00
Matthew Hoops fb6fe1332a BACKENDS: Move to an openCD() without parameters as the public API 2016-03-13 13:52:24 +01:00
Marcus Comstedt 9b7ab59fbb TINSEL: Fix crash when error() is called early 2016-02-07 13:03:52 +01:00
Paul Gilbert bf4ab6d52a TINSEL: Remove redundant assert check in SetHookScene
In the original, a second SetHookScene call can validly occur due to first
placing the cover-switched book in the bookcase, and then by the thief
leaving if his arrival happens immediately.
2015-12-01 21:48:14 -05:00
Kirben fba886a21f TINSEL: Add drivers sub folder in Discworld 1, for Miles audio files. 2015-07-04 13:51:45 +10:00
Martin Kiewitz 63656348a7 TINSEL: DW1: add support for Miles Audio driver
- AdLib + MT32 support
2015-06-28 02:10:18 +02:00
Torbjörn Andersson 497324467f TINSEL: Move object creation from constructor to run()
Moved the creation of _midiMusic, _pcmMusic, _sound and _bmv from
the constructor to run(). It was reported on the forum that the
MT-32 emulator didn't work for Discworld, and I'm speculating that
this is because it was being initialized before the "extra path"
had been added to the search path.

It's likely that not all of these objects are needed for every
version of the game. Fixing that is left as an exercise for
someone more familiar with the different game versions than me.
2014-10-17 19:19:55 +02:00
Johannes Schickel 9b138f4eb4 TINSEL: Make GPL headers consistent in themselves. 2014-02-18 02:39:39 +01:00
Johannes Schickel 65931d74e3 TINSEL: Take advante of Engine::initializePath.
This makes sure that the game path is only ever added once for the PSX version
of DW1. Most noticably this will make the warning about the game path being
present in SearchSet disappear on startup.
2014-01-22 18:08:32 +01:00
Torbjörn Andersson 56431cfc59 TINSEL: Fix DW2 assertion when quitting during cutscene
Call _bmv->FinishBMV() before setting g_pCurBgnd to NULL. Otherwise,
there will be an assertion if quitting during a cutscene while a
subtitle is being shown. (At least I think that's the condition.)

(Also, it seems to be a good idea to call it before EndScene(),
because even though there was no assertion, I got a lot of warnings
when I did it after.)
2013-08-10 16:56:07 +02:00
Filippos Karapetis d45534d29d TINSEL: Remove the unused noFadeTable parameter from the fader functions 2013-04-12 07:19:52 +03:00
Filippos Karapetis 1713d7ee3c TINSEL: Always convert the inventory objects to the native endianess
This is needed for DW1 Mac
2012-12-15 08:14:54 +02:00
Filippos Karapetis e08fa202d6 TINSEL: Handle the invalid max polygons value in DW1 Mac 2012-12-11 03:10:50 +02:00
Filippos Karapetis b05fa7f204 TINSEL: Add resource handling of the BE resources in DW1 Mac
This is the second attempt. All the BE resources of DW1 Mac are
handled correctly now. Added READ_16, READ_32, FROM_16, FROM_32 and
TO_32 to handle all of the different cases where endianess is
already handled. Note that the game scripts are LE, so these
haven't been changed
2012-12-11 02:56:48 +02:00
Filippos Karapetis c6cf4827d7 TINSEL: Revert most of the engine BE resource handling code
This was added in commit 3fdddd53b2.
However, having handling for both BE and LE resource complicates
the engine code unnecessarily. Thus, a different approach will be
done.
2012-12-10 17:38:22 +02:00
Torbjörn Andersson 220fb66364 TINSEL: Add scrollwheel support to save/load and inventory 2012-11-24 11:06:42 +01:00
Torbjörn Andersson 0da424efb6 TINSEL: Fix typo in comment 2012-11-22 23:11:27 +01:00
Paul Gilbert 41692ef48a TINSEL: Refactored Tinsel engine to use the Common coroutine scheduler 2012-05-17 20:42:23 +10:00
Alyssa Milburn be35baddc7 TINSEL: Rename globals to add g_ prefix. 2012-02-22 23:14:29 +01:00
Johannes Schickel adb5342247 TINSEL: Take advantage of KeyState::hasFlags. 2011-12-30 01:53:01 +01:00
Johannes Schickel b8dfd3366b TINSEL: Made some static data const. 2011-09-08 20:15:07 +02:00
D G Turner c9156d369f TINSEL: Replace snprintf() usage with Common::String::format()
Safer and less portability issues.
2011-06-02 03:58:27 +01:00
Matthew Hoops 9539017ee3 ALL: initialise -> initialize 2011-05-25 11:17:11 -04:00
Max Horn 4cbe4ede66 COMMON: Registers RandomSources in constructor with the event recorder
This also removes the dependency of engines on the event recorder header
and API, and will make it easier to RandomSources that are not properly
registered.
2011-05-17 12:17:26 +02:00
strangerke 69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Johannes Schickel 71bdb86e02 Merge pull request #16 "Add a PixelFormat to Graphics::Surface.".
For further discussion check here:
https://github.com/scummvm/scummvm/pull/16

Conflicts:
	graphics/png.cpp
2011-05-01 16:54:45 +02:00