Filippos Karapetis
186267a302
Some adjustments to the output of the "selector" and "selectors" console commands
...
svn-id: r43858
2009-08-31 20:09:36 +00:00
Walter van Niftrik
1d6f946ba7
SCI: Add stub for PalVary.
...
svn-id: r43857
2009-08-31 18:42:07 +00:00
Filippos Karapetis
cc17addebf
Removed many bogus return values in the SCI graphics functions - some 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-31 14:24:35 +00:00
Walter van Niftrik
41e24b7495
SCI: Fix messages in QFG remake.
...
svn-id: r43850
2009-08-31 12:32:05 +00:00
Matthew Hoops
3687544fbb
Adding support for AVI in SCI games (such as kq6) and implement kPlatform.
...
svn-id: r43834
2009-08-30 19:47:47 +00:00
Walter van Niftrik
cc6e21635e
SCI: Fix detection of QFG1 remake.
...
svn-id: r43832
2009-08-30 19:33:34 +00:00
Walter van Niftrik
b16641c0b8
SCI: Fix missing 'else' in r43824.
...
svn-id: r43831
2009-08-30 17:47:48 +00:00
Filippos Karapetis
138414b836
Fixed a regression in the sound of the demos of LSL3 and LSL5
...
svn-id: r43825
2009-08-30 15:08:27 +00:00
Walter van Niftrik
3e543d2518
SCI: Add lofs detection.
...
svn-id: r43824
2009-08-30 14:53:58 +00:00
Matthew Hoops
ad144c8ee8
Silence gcc warning.
...
svn-id: r43814
2009-08-30 02:10:25 +00:00
Walter van Niftrik
40d6119fd5
SCI: Add support for SetCursor with 4 args.
...
svn-id: r43813
2009-08-30 01:38:14 +00:00
Walter van Niftrik
cf5483c3d8
SCI: Add SetCursor detection. Cleanup.
...
svn-id: r43812
2009-08-30 01:37:52 +00:00
Walter van Niftrik
fff023794f
SCI: Cleanup
...
svn-id: r43811
2009-08-30 01:37:27 +00:00
Filippos Karapetis
bc8770cafb
Removed the "op_" prefix from opcode names in the script debugger
...
svn-id: r43798
2009-08-29 11:56:59 +00:00
Johannes Schickel
174311e325
Use Common::String::clear instead of assigning "".
...
svn-id: r43787
2009-08-29 06:04:21 +00:00
Johannes Schickel
2bddb68289
- Added static and const to static data.
...
- Slight formatting fixes.
svn-id: r43786
2009-08-29 06:03:56 +00:00
Filippos Karapetis
2874593dec
The first part of the selector table (the first 83 entries) is almost the 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 14:33:26 +00:00
Filippos Karapetis
af2668145a
- Removed the unused selectors "prevSignal", "who" and "distance" from the 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-28 10:13:03 +00:00
Filippos Karapetis
c8b4fbe9c3
Removed the unused selectors (edgeHit, semanticFail and baseSetter)
...
svn-id: r43776
2009-08-28 00:20:27 +00:00
Filippos Karapetis
faa3c64d1b
Stop loading opcodes from vocab.998. They are the same in all SCI games and 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-27 23:39:59 +00:00
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