aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/detection.cpp
AgeCommit message (Collapse)Author
2010-11-09SCI3: Removed detection and any possible support of Shivers 2Filippos Karapetis
Shivers 2 doesn't contain SCI scripts. The whole game logic has been reimplemented from SCI in native code placed in DLL files. Each room has its own DLL file, and some SCI functions have been reimplemented/rewritten for this purpose in native code. The game and demo have all the resources of a SCI game, apart from the SCI scripts themselves. Thus, they cannot be directly supported, unless their whole room logic is rewritten from scratch, which classifies Shivers 2 as "not SCI" svn-id: r54173
2010-11-09SCI: Fixed the fallback detector againFilippos Karapetis
This is a regression from r54155, as we previously ignored the result of addInternalSources() in the fallback detector svn-id: r54163
2010-11-01COMMON: Rename String::printf() to String::format()Max Horn
This is a first step towards getting rid of all uses of regular printf, fprintf, vprintf, vfprintf, puts, fputs, etc. in our codebase. The name format() reflects the purpose of the function, and parallels String.format() in Java, boost::format, and others. svn-id: r54004
2010-10-31SCI: Play time related changesFilippos Karapetis
- Added support for savegame play time - Removed obsolete variables for calculating the play time (EngineState::gameStartTime and Console::_enterTime) - Renamed some variables to camelCase svn-id: r53974
2010-09-18JANITORIAL: Removed most punctuation at end of warning() and error()Torbjörn Andersson
Our warning() and error() functions always add an exclamation mark to the end of the message anyway. svn-id: r52791
2010-09-18SCI: Some changes to the fallback detector (sync with branch 1.2.0)Filippos Karapetis
Added more graceful handling of the case where SCI32 isn't built in and the user tries to detect or start a SCI32 game svn-id: r52789
2010-09-03SCI: adding mother goose titleMartin Kiewitz
svn-id: r52507
2010-08-24SCI: changing maximum slots from 0-999 to 0-99Martin Kiewitz
svn-id: r52319
2010-08-23SCI: multiple changes for mother goose vgaMartin Kiewitz
which is sci1 and sci1.1 fixes bug #3051145 - separating this mother goose from ega and sci2.1 - adding workaround when restoring saved games in these games, games try to calculate restored savedgameid instead of looking it up, we patch this code out and also set the global to the current savedgameid - adding workaround for scripts checking savedgameid to be below 13 (our savedgameids begin at 100 now) - changing official range for savedgameids from 1000->1999 to 100->199, otherwise mother goose would have required much larger patches and this range should be fine even if we replace savedgame dialogs later svn-id: r52301
2010-08-02SCI: Fix leaks in ResourceManager::listResources caller code.Johannes Schickel
svn-id: r51666
2010-08-02SCI: Add fallback detection for Mac SCI0 gamesMatthew Hoops
svn-id: r51620
2010-08-01SCI: Enabled the "Return to Launcher" feature (needs testing)Filippos Karapetis
svn-id: r51577
2010-07-27SCI: changes for mother goose sci2.1Martin Kiewitz
changed signature for kSetCursor sci2.1 added workarounds added separate gameid for mother goose sci2.1 svn-id: r51385
2010-07-18SCI: adding comments about not enabling ScummVM menu savingMartin Kiewitz
svn-id: r51007
2010-07-18SCI: disabling saving from scummvm menuMartin Kiewitz
svn-id: r50993
2010-07-14SCI: separating qfg1ega and qfg1vga gameidsMartin Kiewitz
svn-id: r50881
2010-07-12SCI: changing gameid of lsl6 sci2.1 into "lsl6hires". We need to keep ↵Martin Kiewitz
workarounds etc. separate, scripts are not compatible svn-id: r50829
2010-06-25SCI: Introduce SciGameId enumMax Horn
svn-id: r50273
2010-06-15SCI: Revise how ResourceManager is instantiated.Max Horn
This should allow for better error handling. Also, it means that g_sci->getResMan() returns a valid value much sooner, allowing me to simplify some code. Also added a note about potentially replacing Common::FSList usage by Common::Archive (and FSNode by Archive/ArchiveMember ?). This might be a way to unify the addAppropriateSources variants again. svn-id: r49825
2010-06-15AdvancedDetector: Add new parameter directoryGlobs.Eugene Sandulenko
Without this parameter mass detection gave tons of false alarms. Use globbing for narrowing down the depth search. svn-id: r49788
2010-06-15- Swapped the return value of gamestate_save (false = failed, true = succeeded)Filippos Karapetis
- Removed some duplicate code inside Console::cmdSaveGame() svn-id: r49688
2010-06-14Extended advancedDetector with depth parameter.Eugene Sandulenko
Now AD can search nested directories. By default it is turned off, but there is new parameter to ADParameters struct. Usually value of 2 is good enough for all purposes. svn-id: r49653
2010-06-10Resolved a FIXME with getSciLanguage(), by creating a separate setter. Also, ↵Filippos Karapetis
some camelCase changes svn-id: r49568
2010-06-10Moved all of the game init/run/exit logic inside the SciEngine classFilippos Karapetis
svn-id: r49559
2010-06-05Replaced a leftover Common::File::exists() call in the fallback detectorFilippos Karapetis
svn-id: r49443
2010-06-05Rewrote the remaining parts of the ResourceManager class to work with file ↵Filippos Karapetis
streams, thus removing the SCI_detection hack in the fallback detector svn-id: r49438
2010-06-02If we can't find the game object or game ID in fallback detection, break out ↵Matthew Hoops
instead of assuming the script is there. Fixes a segfault when detecting an LSCI game. svn-id: r49389
2010-06-01Fixed the detection of SCI2.1 games in the fallback detectorFilippos Karapetis
svn-id: r49382
2010-05-23SCI: Enabled saving from the ScummVM menu againFilippos Karapetis
svn-id: r49164
2010-05-23Cleaned up the game ID code:Filippos Karapetis
- The game ID is now obtained from ScummVM ID directly, not by converting Sierra's internal ID - Moved the code which reads the internal Sierra ID inside the resource manager - Moved the code which converts the internal Sierra ID to ScummVM's IDs together with the rest of the detection code svn-id: r49152
2010-05-22CleanupFilippos Karapetis
svn-id: r49143
2010-05-22Rewrote and simplified the game ID detector. It now properly works with ↵Filippos Karapetis
SCI0-SCI2.1 games svn-id: r49142
2010-05-21Removed the reliance on the segment manager from the fallback detector, for ↵Filippos Karapetis
SCI0-SCI1 games (it still doesn't work with SCI1.1 and newer games, though) svn-id: r49126
2010-05-21Some further work on the fallback detector, reducing the reliance on the ↵Filippos Karapetis
segment manager svn-id: r49125
2010-05-19Slight bugfix in the object iteration inside getSierraGameId()Filippos Karapetis
svn-id: r49110
2010-05-19Added a new method to the resource manager, to help determine if we got a ↵Filippos Karapetis
SCI1.1 Mac game. Started rewriting the fallback detector so that it doesn't rely on the segment manager to find the internal game ID svn-id: r49102
2010-05-10Add support for loading SCI games from Mac resource forks. The games ↵Matthew Hoops
themselves do not work yet as some (not all) of the data is in BE order instead of LE. They currently error out because it thinks the relocation block is outside of the script. svn-id: r48998
2010-03-18COMMON: Get rid of Common::StringListMax Horn
svn-id: r48287
2010-02-17SCI: Reduce header interdependenciesMax Horn
svn-id: r48086
2010-02-17SCI: Cleanup resource.hMax Horn
svn-id: r48084
2010-02-17SCI: Remove hack in convertSierraGameId which caused a memory leakMax Horn
svn-id: r48083
2010-01-31Fix warning format arguments. (Passing a Common::String ins't that much of a ↵Johannes Schickel
good idea) svn-id: r47743
2010-01-31- Fixed saving from the GMMFilippos Karapetis
- Grouped game IDs per SCI generation svn-id: r47742
2010-01-31Removed duplicate code. Some cleanupFilippos Karapetis
svn-id: r47735
2010-01-27Improve support for the SCI2.1/SCI3 file naming scheme. Multiple maps can be ↵Matthew Hoops
used and have to be matched up with their volume counterparts. Adding detection for the Phantasmagoria Demo too. svn-id: r47588
2010-01-25Strip trailing spaces/tabs.Johannes Schickel
svn-id: r47541
2010-01-21SCI: Saved games can now be loaded from ScummVM's launcherFilippos Karapetis
svn-id: r47423
2010-01-17SCI: fixed detection to not crash when adding sierras pinball creep, also ↵Martin Kiewitz
changed detection so that we dont "accept" games that use unknown view resources (otherwise pinball creep will get detected as SCI) svn-id: r47348
2010-01-06SCI: search for %J in text resources to identify japanese games, switch to ↵Martin Kiewitz
upscaled hires when japanese games are started, removed TODO svn-id: r47088
2010-01-06Removed a hack from the fallback detector, used to distinguish some demos ↵Filippos Karapetis
from their full versions svn-id: r47086