diff options
author | Matthew Hoops | 2010-02-07 17:18:14 +0000 |
---|---|---|
committer | Matthew Hoops | 2010-02-07 17:18:14 +0000 |
commit | 7731ded5afe4b246c8fef38b4a70602303c6dff6 (patch) | |
tree | be911d2a455e1fe7245787f1a10db64a0658e110 | |
parent | 7ebbe374e6935cb8669f81fe73d37c6aadda6b0c (diff) | |
download | scummvm-rg350-7731ded5afe4b246c8fef38b4a70602303c6dff6.tar.gz scummvm-rg350-7731ded5afe4b246c8fef38b4a70602303c6dff6.tar.bz2 scummvm-rg350-7731ded5afe4b246c8fef38b4a70602303c6dff6.zip |
Update comments in autoDetectSci21KernelType() explaining what we're checking for.
svn-id: r47973
-rw-r--r-- | engines/sci/engine/features.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/sci/engine/features.cpp b/engines/sci/engine/features.cpp index 57bf12c391..1aaaa39fa8 100644 --- a/engines/sci/engine/features.cpp +++ b/engines/sci/engine/features.cpp @@ -394,8 +394,10 @@ bool GameFeatures::autoDetectSci21KernelType() { if (opcode == op_callk) { uint16 kFuncNum = opparams[0]; - // TODO: Explain this check; what are those kernel funcs supposed - // to be, why does this check work like it does? + // Here we check for the kDoSound opcode that's used in SCI2.1. + // Finding 0x40 as kDoSound in the Sound::play() function means the game is using + // the modified SCI2 kernel table found in some older SCI2.1 games (GK2 demo, KQ7 v1.4). + // Finding 0x75 as kDoSound means the game is using the regular SCI2.1 kernel table. if (kFuncNum == 0x40) { _sci21KernelType = SCI_VERSION_2; return true; |