47 Commits
Author SHA1 Message Date
athrxx adad81ada0 SCI: fix broken ADGF_ADDENGLISH flag handling (part 2)
Only the detection part was fixed in 87549b46 . This one here
will take care of the gui options update that takes place after
each start of the engine.
2026-04-01 19:02:00 +02:00
Łukasz Lenkiewicz aa9973aa98 GUI: Add gui options for additional platform detection 2025-09-06 14:10:59 +02:00
Filippos Karapetis 0128e09639 SCI: Move the language detection fallback code into a separate function 2024-12-11 01:03:42 +02:00
sluicebox 53778fb0fa SCI: Fix resource.cfg parsing in fallback detection
Fixes "language" not being read when on last line
2024-12-07 08:49:37 -08:00
sluicebox 4200d6575c ALL: Return result from MetaEngine::removeSaveState 2024-10-18 09:41:03 +03:00
sluicebox 2554549b41 SCI: Reduce variable scope 2024-10-17 14:47:43 -06:00
athrxx a4380b8e0b SCI: add appropriate render options for KQ6 Win 2024-10-09 08:35:11 +03:00
sluicebox 7a4974a35c SCI: Improve KQ6 CD enable_high_resolution_graphics
- KQ6 CD DOS now delivers a DOS experience by default instead of Windows
- KQ6 CD Windows no longer offers an option that has no effect
2024-10-06 01:25:14 +03:00
sluicebox 871edae91b SCI: Fix detection_internal.h table duplication 2024-08-19 12:23:14 -07:00
Le Philousophe b61bd3ff85 ENGINES: Create a type aware advanced meta engine 2024-06-30 18:39:06 +02:00
athrxx 478cd8925a SCI: (SCI0) - add support for CGA and Hercules render modes
(as per usual, each target has to be run once to upgrade the launcher
options, so that the new render modes can actually be selected)
2024-06-30 13:05:01 +03:00
sluicebox dbb93adee4 SCI32: Add support for HOYLE5 School House Math variant 2024-06-15 00:12:04 -06:00
sluicebox 04bd190e58 SCI: Fix fallback detection for unknown fan games
Fan games are now playable even without detection entries.

Fallback detection takes the name of the game object and maps it to
the ScummVM game id. Prior to this change, if we didn't know the game
object name, we propagated this unknown internal string to the ScummVM
game id for the entry, where it was guaranteed to fail.

Now unknown game object names are mapped to the id for fan games.
2024-05-07 20:25:04 -07:00
sluicebox 27e339c171 SCI32: Remove unused SCI3 big endian handling
This code anticipated Macintosh SCI3 games, but they do not exist.
Mac versions of SCI3 games are all SCI2.1 Late.
2024-04-11 07:52:15 -07:00
Eugene Sandulenko ec2dd2726b ENGINES: Added optional parameter to canSave/LoadGameStateCurrently() for indicating the reason 2023-12-08 12:21:16 +01:00
sluicebox 49a2fac05e SCI: Reduce global engine usage 2023-11-16 18:44:42 -08:00
sluicebox cd319125ef SCI: More const ref parameters 2023-11-03 15:12:41 -07:00
sluicebox c241f21baa SCI: Reduce scope of variables 2023-11-03 15:12:40 -07:00
sluicebox 0386193d56 SCI: Use valid enum value. PVS-Studio V1016 2023-10-29 15:42:12 -07:00
macca8 1c91baab78 SCI: Use slot test to test where save is stored
Properly detects if a save is stored in the autosave slot, preventing an overwrite by the dummy autosave, even though ScummVM autosave support is currently revoked.
2023-03-05 23:19:40 +01:00
sluicebox 962660cd54 SCI32: Add RAMA Demo to fallback detection 2023-01-19 13:50:54 -08:00
sluicebox d18f24f4a6 SCI: Improve fallback language detection
RESOURCE.CFG and RESOURCE.WIN are now parsed for language codes
2023-01-08 11:41:02 -08:00
Cameron Cawley 2c8a7d3900 ENGINES: Remove support for GUI options in MetaEngineDetection subclasses 2022-11-16 23:58:54 +01:00
Filippos Karapetis 7146df7e9e SCI: Disable ScummVM autosaves 2022-06-14 01:44:24 +03:00
Filippos Karapetis 8386e92d40 SCI: Fix incorrect music state after saving via the GMM (bug #13447)
This was initially introduced in d8336a31f, but didn't work properly
with SCI0 music. Many thanks to athrxx for tracking the issue and
suggesting a fix
2022-04-28 00:58:56 +03:00
Filippos Karapetis d8336a31ff SCI: Allow saving from the GMM for games that can support it
This functionality should be working without issues in the following
games:
BRAIN1, BRAIN2, ECOQUEST1, ECOQUEST2, FAIRYTALES, PHARKAS, GK1, ICEMAN,
KQ1, KQ4, KQ5, KQ6, KQ7, LB1, LB2, LONGBOW, LSL1, LSL2, LSL3, LSL5, LSL6,
LSL6HIRES, PEPPER, PQ1, PQ2, PQ3, PQ4, PQSWAT, QFG1, QFG1VGA, QFG2, QFG3,
QFG4, SQ1, SQ3, SQ4, SQ5, SQ6
2022-01-16 18:36:27 +02:00
Filippos Karapetis fb9a96d0f8 SCI: Add WIP code for saving via GMM and autosaving (still disabled)
We check if the user has control, which seems to be working as intended,
but music is not resumed properly after loading, so it's disabled for
now
2022-01-16 13:54:57 +02:00
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Orgad Shaneh 940c7bfc14 SCI: Use nullptr
Using clang-tidy modernize-use-nullptr
2021-11-14 15:51:59 +02:00
Orgad Shaneh ee57380de7 ENGINES: JANITORIAL: Remove 'virtual' when override is specified 2021-11-14 14:32:04 +02:00
Orgad Shaneh 78ef6203de ENGINES: Fix getSavegameFile for almost all engines
Use kSimpleSavesNames correctly, add where needed, remove where needed.

Trac #12977
2021-11-10 21:49:48 +00:00
Orgad Shaneh fe104cc337 ENGINES: Use MetaEngine consistently for getting autosave slot
The autosave refactoring that was done in
7adad5aaf5 used g_engine for identifying the
autosave slot. This worked for in-game save/load, but doesn't fit when
called from the launcher.

Fix by passing MetaEngine to SaveStateDescriptor ctor and using it for this
query.

Amends 7adad5aaf5.
2021-10-24 16:46:06 +02:00
Cameron Cawley 2f99746d8d ENGINES: Allow implementing registerDefaultSettings in the MetaEngine class 2021-09-18 11:57:29 +02:00
Cameron Cawley afe9a804f6 SCI: Move the engine options into the engine plugin 2021-09-18 11:57:29 +02:00
Orgad Shaneh 7adad5aaf5 ENGINES: Streamline auto-save write/delete protection
Some engines call setAutosave and some don't. isAutosave is used to
determine if a saved game is an autosave, but in fact, on most cases it
just falls back to comparing the name to "Autosave".

This is wrong for several reasons:
* Older versions of ScummVM used Autosave 0.
* The name "Autosave" is translated, so if you change the language, it
  won't be detected.

Instead of relying on the name, use the well-known getAutosaveSlot() from
Engine/MetaEngine.

Fixes #12735.
2021-08-23 13:34:35 +02:00
ysj1173886760 5c08d58f70 ENGINES: resolve compile errors 2021-06-13 14:15:45 +02:00
Orgad Shaneh a05e54f00c JANITORIAL: Remove trailing whitespaces 2021-05-04 11:46:30 +03:00
Filippos Karapetis a88cef4b28 SCI: Refactor and simplify the fallback detector 2021-04-23 15:39:17 +03:00
Cameron Cawley 4ccc53b0aa SCI: Fix fallback detection for Police Quest: SWAT 2021-04-16 01:11:40 +02:00
Eugene Sandulenko 5e7fe2dc57 JANITORIAL: Replace spaces in indentation with tabs 2021-04-15 21:20:36 +02:00
Thierry Crozat 4ed344b111 SCI: Fix compilation following recent AdvancedMetaEngine changes 2020-12-04 23:04:18 +00:00
Cameron Cawley 4ced49acd4 ENGINES: Changed AdvancedMetaEngine::createInstance to return a Common::Error 2020-12-04 20:57:14 +00:00
Eugene Sandulenko b7b8d0638f SCI: Always detect all games, but give users a message when SCI32 is not compiled in 2020-11-29 16:35:15 +01:00
Filippos Karapetis f02068a8f3 SCI: Add a flag to distinguish SCI16 from SCI32 games during detection 2020-11-29 14:36:18 +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 102b22f4a8 SCI: Fix naming for SciMetaEngineConnect 2020-10-03 14:56:36 +02:00
aryanrawlani28 255af8a0eb SCI: Split detection features & adapt to new plugins. 2020-10-03 14:56:36 +02:00