1416 Commits

Author SHA1 Message Date
Eugene Sandulenko
fa8afb37a8 MOHAWK: Added missing override keyword 2020-01-31 13:57:55 +01:00
Bastien Bouclet
5106563c65 MOHAWK: MYST: Add a keymap 2020-01-29 08:51:30 +01:00
Bastien Bouclet
7ecccd3b30 MOHAWK: RIVEN: Add default joystick action mappings 2020-01-29 08:51:29 +01:00
Bastien Bouclet
519b4a57e2 KEYMAPPER: Allow engines to return multiple keymaps
The idea is that keymaps may be situational. A keymap may be always
enabled, while another one may be enabled only during combat..
2020-01-29 08:51:29 +01:00
Bastien Bouclet
426867f4bc KEYMAPPER: Give human readable descriptions to the keymaps 2020-01-29 08:51:29 +01:00
Bastien Bouclet
0995f40677 MOHAWK: RIVEN: Use custom engine actions for event handing 2020-01-29 08:51:29 +01:00
Bastien Bouclet
14663c4790 KEYMAPPER: Make the keymapper mandatory 2020-01-29 08:51:29 +01:00
Filippos Karapetis
684f8de589 MOHAWK: Fix build when the Riven subengine is not enabled 2020-01-27 01:26:35 +02:00
Bastien Bouclet
ee8229dc00 ENGINES: Move keymap initialization to MetaEngine
To be able to access the keymap while the engine is not running.
2020-01-26 23:09:08 +02:00
Bastien Bouclet
19de568e24 KEYMAPPER: Untangle the dependencies between Action and Keymap 2020-01-26 23:09:08 +02:00
Bastien Bouclet
d60190b12e ENGINES: Define default bindings for the existing engine keymaps 2020-01-26 19:07:53 +01:00
Bastien Bouclet
9c0bc2b633 KEYMAPPER: Simplify the way keymaps are enabled and disabled 2020-01-26 19:07:53 +01:00
Bastien Bouclet
ac44469558 KEYMAPPER: Remove the domain class 2020-01-26 19:07:53 +01:00
Bastien Bouclet
e197a75829 KEYMAPPER: Action can generate only a single event 2020-01-26 19:07:53 +01:00
Filippos Karapetis
12145ac50c MOHAWK: RIVEN: Do not call initKeymap() from within the engine
This is meant to be called from the base engine code (base/main.cpp)
2020-01-13 00:42:44 +02:00
Filippos Karapetis
afa23d3378 MOHAWK: RIVEN: Improve keymapper support 2020-01-13 00:42:44 +02:00
Cameron Cawley
5e05f43919 MOHAWK: RIVEN: Add keymapper support 2020-01-13 00:42:44 +02:00
Cameron Cawley
532f382602 MOHAWK: Unify Windows cursor managers 2020-01-11 17:34:12 +02:00
Cameron Cawley
b8e94e1acd COMMON: Rename PEResources::getNameList() to getIDList() 2020-01-11 17:34:12 +02:00
Cameron Cawley
948c555ea6 ALL: Create all instances of NEResources and PEResources using new instead of on the stack
Also adapted WinCursorGroup and MacMenu to reflect this.
2020-01-11 17:34:12 +02:00
Cameron Cawley
4d9ec631f1 MOHAWK: LB: Add a console command to change the cursor 2019-12-31 21:38:45 +02:00
D G Turner
dbd7581c41 MOHAWK: Remove Unused Engine Pointer from Riven Options Dialog
Flagged by GCC -Wunused-private-field
2019-12-14 21:31:44 +00:00
D G Turner
1072fca204 MOHAWK: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
2019-12-02 00:16:10 +00:00
Bastien Bouclet
bc983b82af MOHAWK: MYST: Loop the flyby movies and allow skipping using left click
Fixes #10599.
2019-11-15 19:34:18 +01:00
Bastien Bouclet
09ed67d7f0 MOHAWK: MYST: Use OSystem::fillScreen now it works with all pixel formats 2019-11-10 21:04:29 +01:00
Bastien Bouclet
3d34c3e5c0 MOHAWK: Stop relying on the target to detect the current game
The target is user defined and not may not contain the game name
2019-11-03 11:43:00 +01: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
Bastien Bouclet
8a02d0efad MOHAWK: MYST: Save the options to ConfMan when the game is not started 2019-10-30 19:54:12 +01:00
Bastien Bouclet
998bd303c6 MOHAWK: RIVEN: Save the options to ConfMan when the game is not started
That way changes made while on the main menu with no game started are
persisted across sessions. When a game is started, the options are saved
to the savegame as previously.
2019-10-29 21:29:47 +01:00
Bastien Bouclet
d810bb7451 MOHAWK: MYST: Fix misuse of OSystem::fillScreen
OSystem::fillScreen is documented to only accept values between 0 and
255, and thus cannot be sanely used for hi-color graphics. This is
probably an unfortunate leftover of when hi-color support was added.

Fixes videos playing on a white background on the 3DS.
2019-10-27 20:24:05 +01:00
Bastien Bouclet
ecccefcbec MOHAWK: Cut down on seeks when opening archives
Helps with loading times on systems with slow storage.
2019-10-26 19:18:47 +02:00
Michael Ball
44b607a052 MOHAWK: RIVEN: Modify cursor preloading to resolve crashing on 3DS
Common::PEResources being allocated on the stack was causing a stack overflow. ScummVM is configured to have 256kb of stack memory on the 3DS.
2019-10-12 21:47:20 +02:00
Eugene Sandulenko
ed98a96e87 MOHAWK: Add Myst ME as a subengine, and mark 'jpeg' as a required dependency
Because our build system does not allow recursive dependencies, inserting
#error for incorrect configuration. For enabling mystme, myst target must
be enabled as well
2019-10-05 19:07:50 +02:00
Cameron Cawley
fe5dddf901 GRAPHICS: Add a version of CursorManager::replaceCursor that accepts a Graphics::Cursor 2019-08-09 23:58:32 +03:00
Filippos Karapetis
f5ed07c3e7 MOHAWK: Fix MSVC warnings
Fix assignments to float variables, by adding a float suffix
2019-05-27 14:53:40 +03:00
Cameron Cawley
8c2b09d919 COMMON: Replace NEResourceType and PEResourceType with a shared enum 2019-05-01 23:52:56 +03:00
Bastien Bouclet
57218bb38d MOHAWK: RIVEN: Fix using the jundle ladder without lowering it
It was possible to bypass lowering the ladder when using keyboard
navigation. This is fixed using a game script patch to ensure the
hotspot for getting down the ladder is disabled when appropriate.
2019-03-08 06:29:52 +01:00
Bastien Bouclet
04edc22635 MOHAWK: RIVEN: Add a console to quickly test all the cards
Goes through all the cards clicking on hotspots at random.
2019-02-02 13:30:44 +01:00
Bastien Bouclet
27a7a67778 MOHAWK: RIVEN: Prevent the card leave script from recursing
Recursion would happen when multiple events are received in the same
frame. This could happen when mashing both the mouse and the keyboard to
move around faster, as noticed by a speedrunner.
2019-02-02 13:30:44 +01:00
Bastien Bouclet
8f350905e9 MOHAWK: RIVEN: Patch Jungle island book closing animation script
Fixes #10880.
2019-01-30 08:46:01 +01:00
D G Turner
2f9ffda456 MOHAWK: Fix Fall Through Compiler Warning. 2018-11-13 08:37:03 +00:00
Bastien Bouclet
2f851edfc2 MOHAWK: Show the closed gate on the 3rd channelwood level
The original game scripts are missing a delay.
Fixes #10727.
2018-10-07 16:12:22 +02:00
D G Turner
444884f9ac MOHAWK: Add Detection Entries For Two LB Game Variants.
These are from bug Trac #6745 "MOHAWK: Two unknown Living Book game
variants..."
2018-10-05 03:31:57 +01:00
D G Turner
66153aa28a MOHAWK: Add Detection Entry for Spanish Variant of Arthurs Birthday.
This is from Bug Trac #10705.
2018-10-04 01:49:05 +01:00
Bastien Bouclet
e758ff8036 MOHAWK: RIVEN: Don't allow saving from the GMM if no game is started 2018-09-09 16:11:12 +02:00
Bastien Bouclet
22ded2c406 MOHAWK: RIVEN: Don't allow opening the main menu from the config screens 2018-09-09 16:11:12 +02:00
David Fioramonti
d7b511b98b MOHAWK: RIVEN: Return to main menu after the credits
Like the original the game loop returns to the main menu
after the credits end.

The variable states are reset and the player can start
a new game or load an old one.
2018-09-09 16:11:12 +02:00
Bastien Bouclet
3c8a0a3d2e MOHAWK: RIVEN: Wait for the sound track to end after the credit 2018-09-01 06:27:56 +02:00
David Fioramonti
33131554c1 MOHAWK: RIVEN: Let credits roll longer
Fixes Trac#10675.

Previously, the credits ended as soon as the last row was shown
of the final credits image.

Now some more black rows (empty rows) are shown and finally a few
seconds of black. I set it to 8 seconds of wait beyond where
the credits where previously stopping.

In order to do this updateCredits was enhanced to work past the end
of the last credits image (and just keep adding empty rows).

The original game shows a black screen for a longer period than this.

The credit image numbers are turned into enums.
2018-08-31 16:56:50 -04:00