Commit graph

85 commits

Author SHA1 Message Date
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
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
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
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
Eugene Sandulenko
fa8afb37a8 MOHAWK: Added missing override keyword 2020-01-31 13:57:55 +01:00
Bastien Bouclet
5106563c65 MOHAWK: MYST: Add a keymap 2020-01-29 08:51:30 +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
Filippos Karapetis
684f8de589 MOHAWK: Fix build when the Riven subengine is not enabled 2020-01-27 01:26:35 +02: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
3d34c3e5c0 MOHAWK: Stop relying on the target to detect the current game
The target is user defined and not may not contain the game name
2019-11-03 11:43:00 +01:00
Bastien Bouclet
9c8bd056d6 ENGINES: Stop using 'single id' 2019-11-03 11:43:00 +01:00
Bastien Bouclet
4b42112721 ENGINES: Add an engine ID to all the engines 2019-11-03 11:43:00 +01:00
Eugene Sandulenko
ed98a96e87 MOHAWK: Add Myst ME as a subengine, and mark 'jpeg' as a required dependency
Because our build system does not allow recursive dependencies, inserting
#error for incorrect configuration. For enabling mystme, myst target must
be enabled as well
2019-10-05 19:07:50 +02:00
Bastien Bouclet
3a7f85971f MOHAWK: MYST: Add support for the localized 25th games 2018-07-30 20:13:16 +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
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
61f9398b04
Merge pull request #1187 from bgK/detection-refactor-unknown
ENGINES: Return unknown game variants with the list of detected games
2018-05-28 18:43:15 +02:00
Bastien Bouclet
44fd44ccc9 MOHAWK: Remove detection entries for games not supported by the engines 2018-05-17 20:49:28 +02:00
Bastien Bouclet
cf1ebf2951 ENGINES: Add unknown game variants to the game detector results 2018-05-10 09:04:23 +02:00
Bastien Bouclet
84b2dc5cc8 MOHAWK: Fix some clang-tidy warnings 2018-03-31 13:36:09 +02:00
Bastien Bouclet
4c7d3c1857 MOHAWK: Change the game ID for the making of Myst to lowercase
No target upgrade needed since it is not stored in the config file.
2016-09-15 12:44:57 +02:00
Bastien Bouclet
504ffd2aba MOHAWK: Switch Riven saves to a slot based naming scheme
Existing saves are compatible but must be renamed to riven-###.rvn
2016-07-10 22:01:03 +02:00
Bastien Bouclet
f78bb08b18 MOHAWK: Save ScummVM specific metadata in the Riven saves
- Thumbnail
- Save date
- Save description
- Total play time
2016-07-10 22:01:03 +02:00
Bastien Bouclet
9db3f69f5e MOHAWK: Switch to slot based save file naming for Myst
Myst previously used the user provided description as the save filename.
This was not working when the user entered chacacters forbidden by the
filesystem.

The actual save format has not changed. Old saves are still compatible,
but must be renamed to 'myst-###.mys' and 'myst-###.mym'.

Fixes 7106.
2016-04-03 08:11:56 +02:00
Johannes Schickel
3aecd8ef2a ENGINES: Make variable names of ADGameDescription conform to our guidelines.
gameid     -> gameId
guioptions -> guiOptions
2016-03-08 19:01:38 +01:00
Johannes Schickel
0b6befdcc5 ENGINES: Make variable names of AdvancedMetaEngine conform to our guidelines.
_singleid   -> _singleId
_gameids    -> _gameIds
_guioptions -> _guiOptions
2016-03-08 19:01:13 +01:00
Bastien Bouclet
833b800a32 MOHAWK: Add an engine specific option to play the Myst fly by movie
It is disabled by default since the original engine never plays it.
When enabled, it is only played when first arriving on Myst.
2016-03-05 14:43:10 +01:00
Bastien Bouclet
7044996cd5 MOHAWK: Add support for the ScummVM save metadata features
The metadata is saved in a separate file to keep compatibility with
the original engine saves.
2016-02-22 08:44:55 +01:00
Johannes Schickel
abd9e92086 MOHAWK: Make GPL headers consistent in themselves. 2014-02-18 02:39:36 +01:00
Matthew Hoops
3b7224f052 MOHAWK: Add Rugrats Print Shop demo detection 2012-11-04 21:26:09 -05:00
Sven Hesse
2c760cb15e DETECTOR: Make detectGameFilebased() return a list of MD5s and file sizes
Since we need a FSNode parent for Mac resource forks, we need to change
signature of detectGameFilebased(), too.
2012-06-27 05:14:18 +02:00
Max Horn
01f806c2db DETECTOR: Treat file based fallback like any other fallback method 2011-06-14 18:52:11 +02:00
Max Horn
7c992d6598 DETECTOR: Merge ADParams into AdvancedMetaEngine 2011-06-14 18:17:01 +02:00
Max Horn
b1965f9a3f MOHAWK: Switch to alternate AdvancedMetaEngine, avoid ADParams 2011-06-10 22:15:43 +02:00
Max Horn
4827cc914a ENGINES: Change incorrect use of 'target' to 'gameid' 2011-06-10 22:15:40 +02:00
Thierry Crozat
3c59e37035 ENGINES: Unify engine names
This unifies the engine names in MetaEngine::getName() and the
credits. In particular drop "Engine" or "engine" from the names when
it was present and use expanded names in credits when the
MetaEngine uses it (e.g. "Beneath a Steel Sky" instead of "BASS").
2011-05-16 00:11:32 +01:00
strangerke
69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Ori Avtalion
81e3f6f027 MOHAWK: Fix compilation 2011-04-28 20:24:24 +03:00
Ori Avtalion
9414d7a6e2 JANITORIAL: Reduce header dependencies in shared code
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
Alyssa Milburn
d3ca972ab4 MOHAWK: Add detection for The Berenstain Bears In The Dark. 2011-04-24 12:10:07 +02:00
Matthew Hoops
b6a4d3e391 MOHAWK: Detect CarmenTQ's Custom Question Creator
(Same LB version as the main game)
2011-04-07 18:18:10 -04:00
Matthew Hoops
e7165a23b4 MOHAWK: Fix title of Arthur's Teacher Trouble 2011-04-02 11:08:05 -04:00
Alyssa Milburn
046a34bd42 MOHAWK: Add LB detection entries from pacifist.
This adds entries for Harry and the Haunted House, Ruff's Bone,
Stellaluna, and Sheila Rae, the Brave.
2011-03-29 23:55:25 +02:00