Commit Graph

163 Commits

Author SHA1 Message Date
Bastien Bouclet
3a7f85971f MOHAWK: MYST: Add support for the localized 25th games 2018-07-30 20:13:16 +02:00
David Fioramonti
3299402a23 HOHAWK: RIVEN: Don't allow autosaving after credits have finished
There is a brief period after the credits finish, but before the engine
closes that autosaving can happen.

Fixes Trac#10635.
2018-07-21 07:45:39 -07:00
Bastien Bouclet
9729ff3706 MOHAWk: RIVEN: Reset the mouse cursor when changing stack / unpausing 2018-07-13 19:44:54 +02:00
Bastien Bouclet
d91ac01419 MOHAWK: RIVEN: Queue opening and closing the main menu as scripts
This way all the other actions are blocked while the card load scripts
are executed. Expecially, it's not possible anymore to open the main
menu while the scripts for returning from the main menu are still
executing.

Fixes Trac#10628.
2018-07-13 19:44:48 +02:00
Bastien Bouclet
de86847184 MOHAW: RIVEN: Added more localized 25th resource id workarounds
Fixes Trac#10625, Fixes Trac#10624.
2018-07-11 20:32:08 +02:00
Bastien Bouclet
e105c2a78a MOHAWK: RIVEN: Fix off-by-one ids in ospit for the 25th localized versions
Fixes Trac#10620.
2018-07-10 19:09:30 +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
Eugene Sandulenko
1f4d4b01ea MOHAWK: RIVEN: Removed hardcoded list of language prefixes.
This will let to play with the prefixes without recompilation.
2018-06-29 13:31:55 +02:00
Bastien Bouclet
52c89cb1e2 MOHAWK: RIVEN: Disable autosaving while the game is not started 2018-06-29 13:31:55 +02:00
Eugene Sandulenko
cfa649d7ac MOHAWK: RIVEN: Restrict new menu to 25th Anniversary games 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
4b900cc432 MOHAWK: RIVEN: Remove the load/save/quit buttons from the options dialog
Those features can now be accessed through 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
Bastien Bouclet
3b794d2633 MOHAWK: Display a GUI error message when no audio devices are available 2018-06-07 20:14:27 +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
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
1b0f1dafbb MOHAWK: RIVEN: Ignore key repeat events
This fixes keyboard book page turning being too fast when holding keys
2017-11-26 15:11:22 +01:00
Bastien Bouclet
83b27d263e MOHAWK: RIVEN: Allow turning book pages more quickly
Fixes #10075
2017-11-26 15:11:12 +01:00
Bastien Bouclet
a99891c2f3 MOHAWK: Riven: Pause the engine while the load dialog is open 2017-08-20 10:01:24 +02:00
Bastien Bouclet
efddaf84eb MOHAWK: Riven: b_Data1.mhk is not required to play the CD version 2017-08-11 19:05:55 +02:00
Bastien Bouclet
8e5ac98a4b MOHAWK: Riven: Add keyboard navigation 2017-08-06 17:36:27 +02: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
51a342b9ec MOHAWK: Riven: Make sure to update the cursor when entering a card 2017-08-05 14:01:11 +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
64303abb07 MOHAWK: Myst: Update the screen only once per frame
Change all inner loops to call the same frame function.

Remove the draw delay code. Now that we have proper frame pacing it is
not necessary anymore to wait before drawing to make sure the previous
frame stayed on the screen long enough.

Fixes #9915, #9922, #9923.
2017-07-22 20:38:56 +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
8c6cd98067 MOHAWK: Fix the inventory being visible when scripts are running 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
637a08bcf3 MOHAWK: Don't allow loading while a script is running
Scripts may have an inner game loop where loading is not working.
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
1aa4233802 MOHAWK: Rework stack frame updates to work like the original 2017-07-03 08:50:10 +02:00
Bastien Bouclet
ad7f94f10f MOHAWK: Add a transition speed widget to the settings dialog 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
286cdef658 MOHAWK: Add basic mouse handling to RivenStack 2017-07-03 08:50:10 +02:00