1486 Commits

Author SHA1 Message Date
sluicebox
93eeffc84d JANITORIAL: Update old bug tracker numbers 2021-03-03 02:15:05 +02:00
SupSuper
1b3915f222 MOHAWK: Add RTL support to Engine options tab
Options dialogs need to be named "GameOptions"
to be properly laid out in RTL.
2021-01-28 13:14:51 +00:00
Torbjörn Andersson
f1abf7d007 MOHAWK: Remove unnecessary string trimming
Since terminators are no longer added, there should be no need to
trim them afterwards.
2020-12-09 11:59:19 +02:00
Torbjörn Andersson
168731e788 MOHAWK: Fix Myst regression (bug #11954)
Apparently, when reading a movie file name the engine needs to read
an even number of bytes, so if the length of the file name is even
(not counting the terminating 0) it has to read an extra byte. This
was already done, but apparently the String class used to allow you
to add terminators to a string, and these were then counted into
the length of it. Not adding the terminator avoids this disambiguity.
2020-12-09 11:59:19 +02:00
trembyle
3854864c5d MOHAWK: Detect Brazilian variant 2020-12-07 01:35:53 +01:00
Cameron Cawley
4ced49acd4 ENGINES: Changed AdvancedMetaEngine::createInstance to return a Common::Error 2020-12-04 20:57:14 +00:00
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