213 Commits

Author SHA1 Message Date
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Lothar Serra Mari
aba467439f MOHAWK: MYST: Greatly simplify addCdRomDelay related configuration checks 2021-07-17 08:29:38 +02:00
Lothar Serra Mari
2e0f983db3 MOHAWK: MYST: Fix formatting in addCdRomDelay related routine 2021-07-17 08:29:38 +02:00
Lothar Serra Mari
149ffec094 MOHAWK: MYST: Make timing more accurate 2021-07-17 08:29:38 +02:00
Lothar Serra Mari
d42f166634 MOHAWK: MYST: Use wider range of possible loading delays 2021-07-17 08:29:38 +02:00
Lothar Serra Mari
66fed9f03d MOHAWK: MYST: Reduce calls to ConfMan by introducing state variable for cdromdelay requests 2021-07-17 08:29:38 +02:00
Lothar Serra Mari
6c86a4956a MOHAWK: MYST: Change timing for CD-ROM emulation 2021-07-17 08:29:38 +02:00
Lothar Serra Mari
552813545d MOHAWK: MYST: Add option to simulate CD-ROM loading times during card transition 2021-07-17 08:29:38 +02:00
sluicebox
8e1d90f8e4 ALL: Remove clearAllDebugChannels() from Engine dtors 2021-06-14 12:42:38 -05:00
aryanrawlani28
1d3e4d2800 MOHAWK: Do not create additional folders for riven & myst metaengines. 2020-10-03 14:56:36 +02:00
aryanrawlani28
65320b26a6 MOHAWK: MYST: Move common myst engine/detection code to new class.
- This new class will help in detection.
2020-10-03 14:56:36 +02:00
aryanrawlani28
4b6976c558 GUI: U32: Reduce number of files changed and fixes
Up until last commit, everything was working fine but the amount of files changed was too large. This commit tries to reduce the changes.

- Add a fake constructor to Keymap, text-to-speech, setDescription (save-state)
- Redirecting functions for PopUpWidget::appendEntry, ButtonWidget::setLabel, GUIErrorMessage
- Use the above functions and constructors to reduce changes in Engines
- Fix warnings being in unicode. Only output english text in - Warnings, Errors, etc.
- Mark some strings as "translation" strings. (Not yet added to POTFILES)
- Remove some CP related things from po/modules.mk
- Previously used some Common::convertToU32 where it was not necessary, replace this with u32constructor
2020-08-30 14:43:41 +02:00
aryanrawlani28
bed05ea134 GUI: U32: Fix compilation errors across entire project
After the initial changes just to scummvm/gui for u32, this commit includes the whole project

- Widget creations now always have u32 descriptions, labels, or tooltips
- Message dialogs make use of default arguments instead of providing the same argument explicitly
- encode String::format properly before passing on as argument where necessary
- Modify hugo utils (yesNoBox and notify box) to use u32
- Also provide fake constructors for the above which redirect to the u32 constructor
- Convert all keymap descriptions to u32 across all engines
- showConfirmationDialog in mohawk now uses u32
- showScummVMDialog also uses u32
- Scumm engine has dialogs now which use u32
- General fixes and wrapping convertToU32String for setLabels and related functions
- Add a fake constructor to MesssageDialog which redirects to the u32 constructor
2020-08-30 14:43:41 +02:00
mataniko
06242a712b JANITORIAL: Rename EVENT_RTL
Now that ScummVM is adding RTL support, the EVENT_RTL should be disambigious that it is for returning to launcher
2020-05-12 10:36:38 +02:00
Eugene Sandulenko
c44840285d MOHAWK: Replace assert() with error()
assert() is not compiled in MSVC release builds, which would lead
to unexpected behavior.
2020-05-10 13:38:21 +02:00
D G Turner
d42858e8cf MOHAWK: Fix Switch Missing Default Compiler Warning 2020-04-19 16:47:57 +01:00
Bastien Bouclet
8f778d9035 MOHAWK: Fix escape opening the GMM in the 25th edition games 2020-04-18 09:08:35 +02:00
Bastien Bouclet
8ad496fe52 MOHAWK: MYST: Use the shared save/load dialog code 2020-04-16 07:18:34 +02:00
Bastien Bouclet
ce0773eaf9 MOHAWK: MYST: Menu related fixes
* Allow showing the GMM using F5 during cutscenes in the non 25th
  versions.
* Autosave when quitting from the GMM when it was opened using F5
2020-04-08 20:19:18 +02:00
Bastien Bouclet
1d731aeef9 MOHAWK: Simplify retrieving game features 2020-03-28 07:38:39 +01:00
Bastien Bouclet
c9476543e0 MOHAWK: MYST: Allow changing the game language while on the main menu 2020-03-28 07:38:39 +01:00
Bastien Bouclet
1be3c3c7c4 MOHAWK: MYST: Configuration dialog changes
* Unify the custom options dialog (previously accessed through F5), the
  engine options tab 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.
* Change the Quit button in the Global Main Menu to show the credits
  before quitting. This is to reproduce the original game behavior.
2020-03-28 07:38:39 +01:00
D G Turner
9712ab0f3d MOHAWK: MYST: Fix Missing Default Switch Case
These are flagged by GCC if -Wswitch-default is enabled.
2020-03-17 13:32:16 +00:00
Bastien Bouclet
3498965e66 MOHAWK: Remove the autosave overwrite check
This check is now performed by the shared autosave code.
2020-02-17 20:01:44 +01:00
Paul Gilbert
c3c0d04d2a MOHAWK: Hook Myst & Riven into SaveStateDescriptor autosave flag 2020-02-16 15:44:28 -08:00
Paul Gilbert
d97949857f MOHAWK: Re-add saving autosave for Myst on quit
I haven't figured out a good way to an exit on save for all engines,
so I'm re-adding the save autosave on exit that Myst previously had,
to call the new common Engine autosave method
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
Bastien Bouclet
60ab1dc239 MOHAWK: Remove the debugger keymapper action
Opening the debugger is now in the global keymap.
2020-02-16 15:35:30 +01:00
Paul Gilbert
03ca59c17d MOHAWK: Refactor to use Engine debugger 2020-02-16 13:07:19 +02:00
Bastien Bouclet
5106563c65 MOHAWK: MYST: Add a keymap 2020-01-29 08:51:30 +01: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
8a02d0efad MOHAWK: MYST: Save the options to ConfMan when the game is not started 2019-10-30 19:54:12 +01:00
Bastien Bouclet
3a7f85971f MOHAWK: MYST: Add support for the localized 25th games 2018-07-30 20:13:16 +02:00
Bastien Bouclet
85a603fdff MOHAWK: MYST: Don't play the flyby movies when going back to Myst 2018-07-25 20:37:27 +02:00
Bastien Bouclet
9aeb4a356e MOHAWK: MYST: Always clear the screen before playing fullscreen movies
Fixes the broderbund logo movie being partially visible when the Cyan
logo is playing.

Fixes Trac#10595.
2018-07-02 21:48:19 +02:00
Bastien Bouclet
73b3a43b89 MOHAWK: MYST: Introduce a main menu stack
Used in the 25th Anniversary edition of Myst ME
2018-06-29 13:15:01 +02:00
Bastien Bouclet
c0fa7ceae5 MOHAWK: MYST: Clean up the options dialog
Also load and save games using ctrl-o / ctrl-s.
2018-06-14 21:04:44 +02:00
Bastien Bouclet
47ddd9c214 MOHAWK: MYST: Move the current stack id to ScriptParser 2018-06-13 07:55:55 +02:00
Bastien Bouclet
ea60aef8a8 MOHAWK: MYST: Simplify memory management of the active stack 2018-06-13 07:55:55 +02:00
Bastien Bouclet
13b3371f1a MOHAWK: MYST: Extract a Card class out of the main engine class
This is to allow having multiple cards loaded at the same time in the
future.
2018-06-13 07:55:55 +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
Bastien Bouclet
5ee24f3970 MOHAWK: MYST: Fix repeatedly trying to autosave when not allowed
Fixes trying to open the save on slot 0 on each frame when it is not an
autosave.
2018-05-20 10:05:12 +02:00
Bastien Bouclet
4396b011ac MOHAWK: MYST: Fix the Wii/GameCube build 2018-05-19 18:23:45 +02:00
David Fioramonti
719c2b8374 MOHAWK: MYST: Autosave to Slot 0
The game will autosave to slot 0 using the save
period given in the scummvm config file
or when the user exits using the GMM.

Autosaves are only allowed when an autosave is
in slot 0 or there is no save in slot 0.

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-19 17:56:05 +02:00
Bastien Bouclet
6798f9c77e MOHAWK: Don't allow displaying the map when the game is not interactive
Fixes Trac#10526 and Trac#10531.
2018-05-17 20:49:28 +02:00
David Fioramonti
52e247e239 MOHAWK: MYST: Make Dni/Atrus endings an enum
The global variable "ending" tracks various
states that Atrus can be in.

This variable determines what video of
Atrus will be playing and if the brother
books have been destroyed.

Despite this variable being called ending
there are other endings not captured by
this variable (like the brother endings).

Also change spelling of Dini to Dni for one
usage of ActiveAge from a previous commit.
2018-04-27 19:22:00 +02:00
Bastien Bouclet
e1c6d4485d MOHAWK: MYST: Don't play the credits when quitting in the middle of a script
Playing the credits unloads the data required by the rest of the script.

Fixes Trac#10502.
2018-04-26 22:14:37 +02:00
David Fioramonti
ab7cdc5907 MOHAWK: MYST: Make global currentAge an enum
This global basically tracks what age/book/stack
the player is in.

It is also used to change stacks via
MohawkEngine_Myst::changeToStack() by
being an index for MystScriptParser::_stackMap
and MystScriptParser::_startCard.

E.x., instead of _global.currentAge = 2
now _global.currentAge = kMystLibrary.

Also two of the endings are considered Ages
instead of being apart of _global.ending.
2018-04-26 22:09:46 +02:00
dafioram
519e02da47 MOHAWK: MYST: Turn held page state into an enum
Previously, the held page stage was an unsigned int 16
with values 0-13. The enum will make its state more clear.
2018-04-25 18:46:50 +02:00