Commit Graph
1480 Commits
Author SHA1 Message Date
Eugene Sandulenko 594eadd182 MOHAWK: Translate messages about non-supported subengines 2020-11-28 20:57:02 +01:00
Cameron Cawley c877097b49 ALL: Remove use of "" in Common::U32String constructors 2020-11-16 16:56:58 +00:00
besentv 3530eae6f1 MOHAWK: Fix game "Just Grandma and Me" german and french version crash
The german and french version of "Just Grandma and Me" (Mohawk engine) have the special characters "ç" and "ö" in their config files. This causes ScummVM to crash when trying to start the game in german or french. Allowing non english chars in config files for Living Books games fixes this issue.
2020-10-31 14:06:25 +01:00
Eugene Sandulenko 7ff34bc9ec PLUGINS: MetaEngineStatic -> MetaEngineDetection 2020-10-11 23:14:39 +02:00
Eugene Sandulenko 7ea6781043 PLUGINS: PLUGIN_TYPE_METAENGINE -> PLUGIN_TYPE_ENGINE_DETECTION 2020-10-11 23:12:32 +02:00
aryanrawlani28 d26bbe521c ENGINES: ALL: Finish renaming ME & AME classes
- ME -> MetaEngineStatic (static parts)
- MEC -> MetaEngine (dynamic parts)
2020-10-03 14:56:36 +02:00
aryanrawlani28 a56dc094b9 ENGINES: ALL: Move detection_enums -> detection.h
- Cleans up headers quite a bit.
2020-10-03 14:56:36 +02:00
aryanrawlani28 1d3e4d2800 MOHAWK: Do not create additional folders for riven & myst metaengines. 2020-10-03 14:56:36 +02:00
aryanrawlani28 29ceb07959 ENGINES: ALL: Revert detection submodule to be directly present in the engine directory
- DETECT_OBJS are present and added inside an engine's modules.mk file.
2020-10-03 14:56:36 +02:00
aryanrawlani28 8189a05316 ENGINES: ALL: Adapt to changes for new plugins by defining a new detection module
For each engine:
- Make a new folder detection
- Move detection-related files inside the folder
- Add a new module "enginename/detection"
- Add DETECT_OBJS here
- Adjust the normal engine module to remove detect_objs
- Adjust every file for the new changes.
2020-10-03 14:56:36 +02:00
aryanrawlani28 52a420f4b1 MOHAWK: Split detection features & adapt to new plugins. 2020-10-03 14:56:36 +02:00
aryanrawlani28 45ad55df2d MOHAWK: Move shared engine/detection enums to new header file. 2020-10-03 14:56:36 +02:00
aryanrawlani28 b4a0fcca6c MOHAWK: Dialogs: Use the new classes to help in dialogs correctly. 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 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
aryanrawlani28 8c324fab42 MOHAWK: RIVEN: Move shared graphics/detection enum to new header. 2020-10-03 14:56:36 +02:00
Bastien Bouclet 0f2c6cd9ea ENGINES: Change mac resource fork file detection to use the file cache
Common::MacResMan is now able to open files from a specified
Common::Archive. This is a bit hacky as dynamic_cast is used to break
the Archive encapsulation to retreive the underlying FSNode. It should
however be more correct than the previous code that assumed files were
at the root of the currently running game's path.

AdvancedDetector constructs a Common::Archive from its FileMap based
filesystem cache and uses it to detect the mac resource fork files.

This cuts the time it takes to run the detection code with all the
engines enabled as dynamic plugins on the 3DS to 30 s from 280 s.
2020-09-20 16:33:45 +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
Thierry Crozat 4b02ad2e31 MOHAWK: Fix crash starting Living Book games
This was a regression from commit cd7b892 MOHAWK: Fix mess with
stream pointers casting.
2020-09-07 01:10:39 +01:00
aryanrawlani28 1612b6845a ENGINES: GUI: U32: Improve translation message usage 2020-08-30 14:43:41 +02:00
aryanrawlani28 277d7dc64c MOHAWK: I18N: Move new translation filename to root dir POTFILES of Mohawk 2020-08-30 14:43:41 +02:00
aryanrawlani28 7a19c7ffee I18N: Update POTFILES
In the previous commit, some new places where translations could be used were found. This commit adds the relevant files to POTFILES.
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 a9bfe35216 GUI: U32: More issue fixes and general improvements
- Use the fake constructor for message dialog less often
- solve errors regarding comparision between string and u32string in midi
- solve errors in testbed/speech related to ttsMan->say
- fix unsigned comparision warning in tab.cpp
- fix issue with static strings and translations in sdl-graphics
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
Eugene Sandulenko cd7b892d0c MOHAWK: Fix mess with stream pointers casting 2020-07-21 18:20:00 +02:00
Bastien Bouclet c3d96f4034 MOHAWK: MYST,RIVEN: Fix the language list after the first launch
When launching the game, AdvancedDetector was overwriting the custom
extra languages from the configuration file with the detection entry,
resulting in all the languages known to ScummVM being offered in the
edit game dialog.
2020-06-07 07:40:27 +02:00
mataniko 581a6ec7d6 JANITORIAL: Rename kSupportsRTL to kSupportsReturnToLauncher 2020-05-12 10:36:38 +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 48e949ebe4 MOHAWK: Fix typo in Italian Riven menu 2020-05-11 02:12:06 +02:00
Henrik "Henke37" Andersson c1c90afbde MOHAWK: Use PauseToken in menu stack 2020-05-10 23:39:31 +02:00
Henrik "Henke37" Andersson fb92ccbade MOHAWK: Use debugPauseToken in Console::Cmd_QuickTest 2020-05-10 23:39:31 +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 bbd861f3ca MOHAWK: RIVEN: Use the shared save/load dialog code 2020-04-16 07:34:02 +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 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 c9476543e0 MOHAWK: MYST: Allow changing the game language while on the main menu 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 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
Michael Ball 3b005ac890 MOHAWK: RIVEN: Refresh cursor on mouse-down
This fixes an issue in the 3DS backend where the cursor would not
update until after the transition was complete.
2020-03-18 20:40:32 +01:00
Michael Ball 366793db22 MOHAWK: RIVEN: Optimize image decoding
This mitigates long load times between cards on low-power devices
by streaming from memory. Code courtesy of Bastien Bouclet (bgK).
2020-03-18 20:40:32 +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
aviloria 213d2d1cf4 MOHAWK: Add detection for a Mac CD game and demo
Add detection for the Macintosh CD 'La Tartaruga e la Lepre' (The Turtle and the Hare) [Italian, English], and a demo included on it for the game 'Al mare con la Nonna' (Grandma and me)
2020-03-15 08:08:12 +01:00