Commit graph

102 commits

Author SHA1 Message Date
aryanrawlani28
2113bbcd9c MOHAWK: RIVEN: Move shared detection/riven code from engine to a new MetaEngine class.
- This new class will help detection work properly.
2020-10-03 14:56:36 +02:00
Bastien Bouclet
bbd861f3ca MOHAWK: RIVEN: Use the shared save/load dialog code 2020-04-16 07:34:02 +02:00
Bastien Bouclet
195d593405 MOHAWK: RIVEN: Allow changing the game language at run-time 2020-03-28 07:38:39 +01:00
Bastien Bouclet
1f5d4d1fdd MOHAWK: RIVEN: Configuration dialog changes
* Unify the custom options dialog (previously accessed through F5), and
  the in-game options dialog accessed through the Global Main Menu.
* Change the default keybinding for F5 to show the GMM for the non-25th
  anniversary editions of the game. This allows easy access to
  the load and save functionality. With the 25th anniversary edition,
  the main menu accessed through ESC should be used instead.
2020-03-28 07:38:39 +01: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
d35d91e6f6 MOHAWK: Remove autosave code 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
03ca59c17d MOHAWK: Refactor to use Engine debugger 2020-02-16 13:07:19 +02:00
Eugene Sandulenko
3265068c67 MOHAWK: Added override keywords 2020-02-05 15:56:33 +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
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
Cameron Cawley
5e05f43919 MOHAWK: RIVEN: Add keymapper support 2020-01-13 00:42:44 +02: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
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
22ded2c406 MOHAWK: RIVEN: Don't allow opening the main menu from the config screens 2018-09-09 16:11:12 +02:00
David Fioramonti
535c47fced MOHAWK: RIVEN: Delay less for slower systems
Some systems may take longer to process the game loop
than others so we delay by a variable amount so faster
and slower system execute the game loop the same number
of times per second (the fps is capped at 100).

Slower systems that take longer than 10ms to process the game
loop won't have any delay.
2018-08-11 10:47:37 +02:00
Bastien Bouclet
3a7f85971f MOHAWK: MYST: Add support for the localized 25th games 2018-07-30 20:13:16 +02:00
Bastien Bouclet
b40e93e11a MOHAWK: Push down the include of advancedDetector.h
So the whole engine is not recompiled when making changes to the
detection code.
2018-06-30 21:57:18 +02:00
Bastien Bouclet
573fa47f94 MOHAWK: RIVEN: Fix loading autosaves saved while on the main menu 2018-06-29 13:31:55 +02:00
Bastien Bouclet
24977b814c MOHAWK: RIVEN: Add detection for the 25th Anniversary version 2018-06-29 13:31:55 +02:00
Bastien Bouclet
e7cb40dde5 MOHAWK: RIVEN: Use an in-game thumbnail when saving from the menu
Instead of a thumbnail of the menu itself.
2018-06-29 13:31:54 +02:00
Bastien Bouclet
45ab57209f MOHAWK: RIVEN: Fix starting a new game with a game currently active 2018-06-29 13:31:54 +02:00
Bastien Bouclet
a722fe1194 MOHAWK: RIVEN: Fix saving while in the menu 2018-06-29 13:31:54 +02:00
Bastien Bouclet
d848ebe85a MOHAWK: RIVEN: Fix loading and resuming from the main menu 2018-06-29 13:31:54 +02:00
Bastien Bouclet
dc93e5bb6a MOHAWK: RIVEN: Add more options to the main menu 2018-06-29 13:31:54 +02:00
Eugene Sandulenko
1e9b58ab4b MOHAWK: RIVEN: Show main menu on ESC 2018-06-29 13:31:54 +02:00
David Fioramonti
37791c4bd3 MOHAWK: RIVEN: Add Autosave Support
The game will autosave to slot 0 using the save
period given in the scummvm config file.
Or when the user quits.

Autosaves are only allowed when an autosave is
in slot 0, there is no save in slot 0, or there
is a save, but it is corrupt.

This will not override any saves the player
has previously put in save slot 0. If there
is a save in slot 0 that is not an autosave
then there will be no autosaving.
2018-05-20 15:17:14 +02:00
Bastien Bouclet
84b2dc5cc8 MOHAWK: Fix some clang-tidy warnings 2018-03-31 13:36:09 +02:00
Eugene Sandulenko
f54e528677 MOHAWK: Added override clauses 2018-03-28 12:28:27 +02:00
Bastien Bouclet
a33548c0d2 MOHAWK: RIVEN: Add keyboard shortcuts for loading and saving
Those shortcuts are documented in the original game manual.
2017-12-20 19:16:07 +01:00
Bastien Bouclet
3007bbe178 MOHAWK: Riven: Load only the data files for the current game version
The Steam version is a DVD version, but also has files from the CD
version in the data folder. We need to load only the files from the DVD
version to prevent data inconsistencies.

Also check on startup that all the required datafiles are present.

Possibly fixes #10052.
2017-08-06 13:13:28 +02:00
Bastien Bouclet
69c1f70818 MOHAWK: Riven: Let the gameloop gracefully end when quitting
Prevents the quit confirmation dialog from being displayed at the end of
the game's ending if it is enabled.

Fixes #9943.
2017-07-29 18:20:45 +02:00
Bastien Bouclet
69dc56ad0f MOHAWK: Riven: Patch prison island dome switch sound change
Fixes #9958.
2017-07-14 08:16:01 +02:00
Bastien Bouclet
c3bbae041a MOHAWK: Riven: Improve save load error handling
A GUI error message is now displayed if an error occurs when loading a
save.
2017-07-12 22:00:33 +02:00
Bastien Bouclet
d6fd0ac626 MOHAWK: Riven: Fix card leave scripts when changing stacks
Card leave scripts were using data from the new stack, whereas they
should have been using data from the old stack to which they belong.

Fixes Trac#9928.
2017-07-11 08:29:59 +02:00
Bastien Bouclet
95951eebf7 MOHAWK: Get rid of refreshCard 2017-07-03 08:50:10 +02:00
Bastien Bouclet
b0ee5772fb MOHAWK: Remove unused / not working functions 2017-07-03 08:50:10 +02:00
Bastien Bouclet
64c1a1d2b2 MOHAWK: Switch enabling the debug rectangles to a console var 2017-07-03 08:50:10 +02:00
Bastien Bouclet
ea303ab682 MOHAWK: Switch timers to script commands 2017-07-03 08:50:10 +02:00
Bastien Bouclet
44943e1285 MOHAWK: Change the delay function not to have an event loop
Fixes events getting lost during delays
2017-07-03 08:50:10 +02:00
Bastien Bouclet
f977b57123 MOHAWK: Rewrite the Riven movie manager 2017-07-03 08:50:10 +02:00
Bastien Bouclet
9153393219 MOHAWK: Allow games to opt out of the default video manager 2017-07-03 08:50:10 +02:00
Bastien Bouclet
3900597996 MOHAWK: Implement card transitions for Riven 2017-07-03 08:50:10 +02:00
Bastien Bouclet
ae6f248616 MOHAWK: Move Riven's sunner alert handling to the jungle stack 2017-07-03 08:50:10 +02:00
Bastien Bouclet
f0267d542f MOHAWK: Keep turning pages while the mouse is pressed in Atrus' book 2017-07-03 08:50:10 +02:00
Bastien Bouclet
7a9b91dfcd MOHAWK: Improve script debug output 2017-07-03 08:50:10 +02:00
Bastien Bouclet
0ba035eea6 MOHAWK: Move Riven inventory code to a new class 2017-07-03 08:50:10 +02:00
Bastien Bouclet
22926a1835 MOHAWK: Move the timer callbacks to the stacks 2017-07-03 08:50:10 +02:00
Bastien Bouclet
efcf38f95f MOHAWK: Factor out stack name-id mapping 2017-07-03 08:50:10 +02:00
Bastien Bouclet
14bbf8aab4 MOHAWK: Move the external commands to their respective stacks 2017-07-03 08:50:10 +02:00