1370 Commits

Author SHA1 Message Date
Matthew Hoops
e8406cc7c3 Throw a warning when kGetSaveDir is called with a parameter
svn-id: r43774
2009-08-27 17:25:13 +00:00
Filippos Karapetis
3963a68937 Removed the signature check from GetSaveDir in order to let the scripts in GK progress a bit further
svn-id: r43771
2009-08-27 15:08:21 +00:00
Matthew Hoops
5d83522e75 Add the minor differences of SCI3 to the SCI2.1 kernel table.
svn-id: r43763
2009-08-27 01:39:30 +00:00
Matthew Hoops
2ceafbae77 - Fix the opcode formats for some opcodes in SCI32 (some arguments are now words instead of bytes).
- Fix the SCI2.1 kernel table.
- Add DoSound detection for SCI2.

svn-id: r43762
2009-08-26 22:11:31 +00:00
Matthew Hoops
0a40bb4d88 Missed another comma....
svn-id: r43761
2009-08-26 20:57:43 +00:00
Filippos Karapetis
ba6a054dc5 Committed a slight patch by clone2727, which contains debug code to dump the 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-26 18:13:11 +00:00
Filippos Karapetis
205aa58cf9 Added a safeguard to avoid getting stuck in an endless loop when 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-26 16:50:22 +00:00
Filippos Karapetis
ed6b9175d0 Further work on the fallback detector: added several demos
svn-id: r43756
2009-08-26 10:01:05 +00:00
Filippos Karapetis
f128f49ea6 If a resource map entry can't be read, retry with the volume version instead, if it's different than the map version
svn-id: r43755
2009-08-26 09:38:51 +00:00
Filippos Karapetis
6e469002dd Formatting
svn-id: r43754
2009-08-26 09:36:54 +00:00
Matthew Hoops
6a50e6dc7f Oops! Missed a comma.
svn-id: r43753
2009-08-26 06:28:12 +00:00
Filippos Karapetis
5ac2b5522d Added code to distinguish between the demo and full versions of fairytales
svn-id: r43752
2009-08-26 01:38:18 +00:00
Filippos Karapetis
fcf4366230 Started working on distinguishing the Sierra game demos. Also added a note about a potential problem with language detection with some SCI games
svn-id: r43751
2009-08-26 01:26:56 +00:00
Filippos Karapetis
3583216c82 Wording
svn-id: r43750
2009-08-26 00:37:04 +00:00
Filippos Karapetis
ed9313f3c1 Added automatic detection of the game language to the fallback detector
svn-id: r43749
2009-08-26 00:27:14 +00:00
Filippos Karapetis
c212b5ad1d Disabled the signature checks for kNewWindow and kGetEvent, which are different in Mac versions. At least, Mac versions should start now
svn-id: r43747
2009-08-25 23:39:06 +00:00
Filippos Karapetis
c3db0d3f2a - Finished automatic detection of the game platform in the fallback detector
- Added detection for GK1 to the fallback detector
- Removed the rest of the executable reading code, as it's no longer used

svn-id: r43746
2009-08-25 23:36:20 +00:00
Filippos Karapetis
f7acc7f669 Fixed compilation when ENABLE_SCI32 is not set
svn-id: r43744
2009-08-25 23:15:18 +00:00
Matthew Hoops
b5da8a5cdc - Split SCI_VERSION_32 into SCI_VERSION_2, SCI_VERSION_2_1, and 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-25 23:02:57 +00:00
Filippos Karapetis
97e0293dfd When opening files, open the English language part of the filename. Fixes some multilingual SCI1 games
svn-id: r43730
2009-08-25 18:27:55 +00:00
Filippos Karapetis
ac025f4294 - Replaced more cases of EngineState parameters
- Made some version comparisons for old SCI0 versions easier to read
- Removed the GET_SEL32SV macro

svn-id: r43729
2009-08-25 15:14:29 +00:00
Filippos Karapetis
3f2e43478b Fixed detection for GK1 demo when SCI32 is not enabled
svn-id: r43727
2009-08-25 09:24:35 +00:00
Filippos Karapetis
eb83ca267d Silenced warnings (thanks wjp)
svn-id: r43725
2009-08-25 09:02:00 +00:00
Filippos Karapetis
ed66cad677 - Simplified the parameters of some functions
- 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-25 08:38:14 +00:00
Walter van Niftrik
4c8c31d769 SCI: Fix interpretation of ShowMovie speed argument.
svn-id: r43718
2009-08-25 00:18:11 +00:00
Walter van Niftrik
d5f61d13b6 SCI: Reverted r40889. New fix for window erasing issue in SCI1.1 games.
svn-id: r43711
2009-08-24 21:56:54 +00:00
Filippos Karapetis
f7b7b494f9 Show if a game is using EGA graphics or not in the detected entry
svn-id: r43699
2009-08-24 14:00:29 +00:00
Filippos Karapetis
5618965282 More work on the fallback detector: added detection of CD games and prevented a crash when detecting a SCI32 game if SCI32 isn't compiled in
svn-id: r43698
2009-08-24 13:47:38 +00:00
Filippos Karapetis
4c62b6ac86 - Removed the code which reads the SCI version string from the game executable in the fallback detector. We no longer use the actual SCI version string, and we can auto-detect a lot of features from the game resources now. The EXE version string was only used to display the detected SCI version in the console, which isn't very useful to us anymore.
- Added detection for PC and Amiga versions based on the game's detected view types. Still need to do detection for Mac and Atari ST versions

svn-id: r43683
2009-08-24 08:10:29 +00:00
Eugene Sandulenko
030665f90b Move detection tables to separate file.
svn-id: r43682
2009-08-24 07:57:04 +00:00
Walter van Niftrik
7359c8f968 SCI: Read class table from vocab resource instead of scanning. This fixes
several "invalid selector" VM crashes caused by duplicate classes.

svn-id: r43680
2009-08-24 01:59:58 +00:00
Filippos Karapetis
60af2db2fd - Added more mappings from Sierra's internal IDs to our own ones. Hopefully, 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-23 21:57:30 +00:00
Johannes Schickel
edc8ffdaba Fix use of default directories in SCI detection code. So far all our detection code was based on FSNode, but since SCI seems to call engine internal code for detection which operates via File, there was the need to use File::addDefaultDirectory to have it working. The problem here is that the default directories are not reset after game detection, since the caller code assumes it's all done via FSNode. A simple change to use SearchMan, which is used internally by File, to add the default directory and removing it later on in the SCI detection code fixed the issue. Of course that is still slightly of a HACK, but it is much nicer than to rewrite engine internal code to use FSNode, just to be usable for game detection. I added a possible solution to remove the HACK as sourcecode comment.
svn-id: r43613
2009-08-21 22:25:55 +00:00
Matthew Hoops
6b21f1c932 Fix detection of some later SCI32 games (RESMAP.001) and some cleanup.
svn-id: r43608
2009-08-21 19:48:48 +00:00
Andre Heider
007f68366f Renamed ENABLE_RGB_COLOR to USE_RGB_COLOR, and added it to config.h to guarantee a consistent build.
svn-id: r43604
2009-08-21 18:16:37 +00:00
Matthew Hoops
c0d9543345 Fix detection of SCI32 resource maps and volumes
svn-id: r43603
2009-08-21 18:12:13 +00:00
Willem Jan Palenstijn
180b56dba4 SCI: disable RGB mode, as it's not ready to be used yet
svn-id: r43600
2009-08-21 16:03:45 +00:00
Jody Northup
3084919b32 Merged RGB color API and support in from /scummvm/branches/gsoc2009-16bit/
svn-id: r43577
2009-08-21 09:37:51 +00:00
Matthew Hoops
cba2897cc8 Truly fix endianness in the SOL decoder. Raw sounds are always in little endian order and now compressed are outputted to little endian too (and therefore the little endian mixer flag is always set).
svn-id: r43576
2009-08-21 03:31:34 +00:00
Walter van Niftrik
a7ab084ecf SCI: Fix for the "Memory fragmented" dialogs popping up in some games.
svn-id: r43572
2009-08-20 21:18:52 +00:00
Joost Peters
6a3c595b01 remove \n's from error() calls
svn-id: r43571
2009-08-20 21:03:03 +00:00
Matthew Hoops
b4c7cd0484 Fix 16-bit SOL audio on little endian systems. Fixes the white noise in the Gabriel Knight demo.
svn-id: r43569
2009-08-20 20:41:12 +00:00
Joost Peters
8f587ed5e4 remove \n's from warning() calls
svn-id: r43567
2009-08-20 19:49:52 +00:00
Matthew Hoops
83835ce93c Add a static selector table for use with the lsl5 demo.
svn-id: r43566
2009-08-20 18:25:55 +00:00
Matthew Hoops
c32f11c106 Add detection for the QFG2 demo.
svn-id: r43565
2009-08-20 18:10:02 +00:00
Matthew Hoops
0a6161233b Remove useless include guard
svn-id: r43564
2009-08-20 17:12:46 +00:00
Walter van Niftrik
a2a6967a63 SCI: Don't dither in SCI.
svn-id: r43550
2009-08-19 21:11:15 +00:00
Walter van Niftrik
c3462a8c76 SCI: Add partial support for Amiga SCI1 games.
svn-id: r43549
2009-08-19 21:10:24 +00:00
Walter van Niftrik
9dbc76c459 SCI: Cleanup.
svn-id: r43548
2009-08-19 21:09:10 +00:00
Walter van Niftrik
8bd4cee2d2 SCI: Add autodetection of Amiga views.
svn-id: r43547
2009-08-19 21:08:17 +00:00