Commit Graph
211 Commits
Author SHA1 Message Date
Donovan Watteau a516588443 JANITORIAL: MOHAWK: Fix missing word from commit 27f9a460b5
Seen by macca8.
2022-08-19 23:29:04 +02:00
Donovan Watteau 27f9a460b5 JANITORIAL: Fix "the the" and similar typos 2022-07-29 19:36:40 +03:00
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01: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 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
Lothar Serra Mari 31af3cbd9d MOHAWK: Silence GCC warning, properly format warning string
Thanks to SupSuper for helping with this!
2020-09-11 09:26:02 +02:00
aryanrawlani28 1612b6845a ENGINES: GUI: U32: Improve translation message usage 2020-08-30 14:43:41 +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 bd19eaa5bf GUI: U32: More code improvements in engines and misc fixes
- Xeen's GUIError now takes in U32String
- Scumm's ValueDisplayDialog takes in U32
- Mohawk's InfoDialog & PauseDialog takes in U32
- Mohawk - in riven.cpp, Some assignment fixes
- Backends -in sdl.cpp, Remove incorrect conversion from iso8859 when setting text in clipboard
- Graphics - Add u32 strings instead of decoding each piece in format
2020-08-30 14:43:41 +02:00
aryanrawlani28 185fb72783 GUI: U32: Improve U32 code
- Revert accidentally put translations in mt32.cpp
- Use U32::format in some places earlier missed
- Add %u and %i for u32::format
- Add support for GUIErrorMsgFormat to use u32::format internally
- Use the above whereever needed
- Improve linux tts by removing redundant code
- Some places I had changed nullptr -> "". Revert this
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
Bastien Bouclet 8f778d9035 MOHAWK: Fix escape opening the GMM in the 25th edition games 2020-04-18 09:08:35 +02:00
Bastien Bouclet bbd861f3ca MOHAWK: RIVEN: Use the shared save/load dialog code 2020-04-16 07:34:02 +02:00
Bastien Bouclet 40cb2f81e7 MOHAWK: RIVEN: Menu related fixes
* Allow showing the GMM using F5 during cutscenes in the CD/DVD version
* Autosave when quitting from the GMM when it was opened using F5
* Allow changing the language when clicking the options button in the
  main menu in the 25th edition

Refs #11399.
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 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
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 233614a2ff MOHAWK: Re-add missing isAutoSaveAllowed call 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 3cd9a9fbf8 MOHAWK: RIVEN: Fix key mappings for look up/down 2020-02-04 09:05:39 +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
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
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
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 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 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 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
David Fioramonti 56389b1a5d MOHAWK: RIVEN: Move input handling to a separate function
Simplifies doFrame().
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
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