aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine
AgeCommit message (Collapse)Author
2009-08-31Rewrote the static selector mapper to use SCI versions instead of game IDs, ↵Filippos Karapetis
and split the selectors in SCI generations svn-id: r43863
2009-08-31- Removed the now-unused "setTarget" selectorFilippos Karapetis
- Added the "setCursor" selector - Replaced the selector table of the LSL5 demo with the one from the LSL1 demo (we no longer get a warning about an invalid selector) - Changed the selector table of the xmas1992 demo to use the table from KQ6 floppy - Set Laura Bow 2 floppy to use the KQ6 floppy table svn-id: r43859
2009-08-31SCI: Add stub for PalVary.Walter van Niftrik
svn-id: r43857
2009-08-31Removed many bogus return values in the SCI graphics functions - some ↵Filippos Karapetis
functions always returned "true", whereas in others they errored out in fatal conditions before any value was returned. FreeSCI was returning values from the graphics drivers it used. In ScummVM, we have one graphics driver, and we error out in fatal conditions anyway, so these error checks are no longer necessary, and the resulting code looks much neater svn-id: r43851
2009-08-31SCI: Fix messages in QFG remake.Walter van Niftrik
svn-id: r43850
2009-08-30Adding support for AVI in SCI games (such as kq6) and implement kPlatform.Matthew Hoops
svn-id: r43834
2009-08-30SCI: Fix missing 'else' in r43824.Walter van Niftrik
svn-id: r43831
2009-08-30Fixed a regression in the sound of the demos of LSL3 and LSL5Filippos Karapetis
svn-id: r43825
2009-08-30SCI: Add lofs detection.Walter van Niftrik
svn-id: r43824
2009-08-30Silence gcc warning.Matthew Hoops
svn-id: r43814
2009-08-30SCI: Add support for SetCursor with 4 args.Walter van Niftrik
svn-id: r43813
2009-08-30SCI: Add SetCursor detection. Cleanup.Walter van Niftrik
svn-id: r43812
2009-08-29Removed the "op_" prefix from opcode names in the script debuggerFilippos Karapetis
svn-id: r43798
2009-08-29Use Common::String::clear instead of assigning "".Johannes Schickel
svn-id: r43787
2009-08-29- Added static and const to static data.Johannes Schickel
- Slight formatting fixes. svn-id: r43786
2009-08-28The first part of the selector table (the first 83 entries) is almost the ↵Filippos Karapetis
same in all SCI versions (up to and including the "z" selector), therefore the hardcoded selector tables can be simplified a lot svn-id: r43780
2009-08-28- Removed the unused selectors "prevSignal", "who" and "distance" from the ↵Filippos Karapetis
quick access selector array - Added the "motionCue" and "egoMoveSpeed" selectors to the selector array, to limit the places where findSelector() is used only in debugging functions - Reordered the selector initialization in mapSelectors(), so that their order matches the order found in vocab.997 svn-id: r43779
2009-08-28Removed the unused selectors (edgeHit, semanticFail and baseSetter)Filippos Karapetis
svn-id: r43776
2009-08-27Stop loading opcodes from vocab.998. They are the same in all SCI games and ↵Filippos Karapetis
are hardcoded anyway (plus, vocab.998 is unreliable in some games, e.g. QFG3, or completely missing in others). Also hardcoded the opcode names for the script debugger, the only place they're actually used. The only place where vocab.998 is loaded on demand is when using the "opcodes" console command (for debug/verification purposes) svn-id: r43775
2009-08-27Throw a warning when kGetSaveDir is called with a parameterMatthew Hoops
svn-id: r43774
2009-08-27Removed the signature check from GetSaveDir in order to let the scripts in ↵Filippos Karapetis
GK progress a bit further svn-id: r43771
2009-08-27Add the minor differences of SCI3 to the SCI2.1 kernel table.Matthew Hoops
svn-id: r43763
2009-08-26- Fix the opcode formats for some opcodes in SCI32 (some arguments are now ↵Matthew Hoops
words instead of bytes). - Fix the SCI2.1 kernel table. - Add DoSound detection for SCI2. svn-id: r43762
2009-08-26Missed another comma....Matthew Hoops
svn-id: r43761
2009-08-26Committed a slight patch by clone2727, which contains debug code to dump the ↵Filippos Karapetis
selector table from a game. This is very useful to construct selector tables for games which don't have a vocab.997 resource, using dumped tables from similar versions or games svn-id: r43760
2009-08-26Added a safeguard to avoid getting stuck in an endless loop when ↵Filippos Karapetis
initializing some problematic scripts in certain demos (e.g. the EcoQuest 1 demo), and fixed the return values of script_instantiate_sci0() in the process svn-id: r43759
2009-08-26FormattingFilippos Karapetis
svn-id: r43754
2009-08-26Oops! Missed a comma.Matthew Hoops
svn-id: r43753
2009-08-25Disabled the signature checks for kNewWindow and kGetEvent, which are ↵Filippos Karapetis
different in Mac versions. At least, Mac versions should start now svn-id: r43747
2009-08-25Fixed compilation when ENABLE_SCI32 is not setFilippos Karapetis
svn-id: r43744
2009-08-25- Split SCI_VERSION_32 into SCI_VERSION_2, SCI_VERSION_2_1, and ↵Matthew Hoops
SCI_VERSION_3 (each version has a different kernel table). - Improve map detection. - Fix SCI32 object and script initialization (Torin's Passage and GK1 scripts now start up, and probably most SCI2/2.1 games). - Add SCI2 and SCI2.1 kernel tables. svn-id: r43742
2009-08-25When opening files, open the English language part of the filename. Fixes ↵Filippos Karapetis
some multilingual SCI1 games svn-id: r43730
2009-08-25- Replaced more cases of EngineState parametersFilippos Karapetis
- Made some version comparisons for old SCI0 versions easier to read - Removed the GET_SEL32SV macro svn-id: r43729
2009-08-25Silenced warnings (thanks wjp)Filippos Karapetis
svn-id: r43725
2009-08-25- Simplified the parameters of some functionsFilippos Karapetis
- Replaced some EngineState parameters - The SCI version is now obtained from the resource manager or the segment manager, thereby simplifying several functions - Plugged 2 leaks in the fallback detector - Renamed the segment manager and resource manager to "segmentManager" and "resourceManager" in all places, for consistency svn-id: r43722
2009-08-25SCI: Fix interpretation of ShowMovie speed argument.Walter van Niftrik
svn-id: r43718
2009-08-24SCI: Reverted r40889. New fix for window erasing issue in SCI1.1 games.Walter van Niftrik
svn-id: r43711
2009-08-24SCI: Read class table from vocab resource instead of scanning. This fixesWalter van Niftrik
several "invalid selector" VM crashes caused by duplicate classes. svn-id: r43680
2009-08-23- Added more mappings from Sierra's internal IDs to our own ones. Hopefully, ↵Filippos Karapetis
all SCI0-SCI11 games can now be detected correctly from the fallback detector - Simplified some checks for old script types svn-id: r43678
2009-08-20SCI: Fix for the "Memory fragmented" dialogs popping up in some games.Walter van Niftrik
svn-id: r43572
2009-08-20remove \n's from error() callsJoost Peters
svn-id: r43571
2009-08-20Add a static selector table for use with the lsl5 demo.Matthew Hoops
svn-id: r43566
2009-08-20Remove useless include guardMatthew Hoops
svn-id: r43564
2009-08-19SCI: Add partial support for Amiga SCI1 games.Walter van Niftrik
svn-id: r43549
2009-08-19Comment out unused function (which was also currently only enabled when ↵Johannes Schickel
SCI32 is enabled). svn-id: r43528
2009-08-18Started rewriting the SCI engine to use FSNode instead of file names. This ↵Filippos Karapetis
is the proper solution for removing the hack in the fallback detector, but it still needs work. Also, reduced the things needed to be initialized a bit, so that the detection is a bit faster svn-id: r43510
2009-08-18- Added game ID detection to the fallback detector. We still need to map ↵Filippos Karapetis
some of Sierra's internal IDs to our own ones - The class table is now created in the segment manager constructor svn-id: r43504
2009-08-17SCI: Fix kernel table for multilingual SCI01 games. Cleanup.Walter van Niftrik
svn-id: r43497
2009-08-17SCI: Build fix.Walter van Niftrik
svn-id: r43483
2009-08-17SCI: Add autodetection for DoSound. Cleanup.Walter van Niftrik
svn-id: r43482