diff options
author | Filippos Karapetis | 2010-06-25 14:50:10 +0000 |
---|---|---|
committer | Filippos Karapetis | 2010-06-25 14:50:10 +0000 |
commit | df37aff35756e03e02b47ce3483b06679a662ce6 (patch) | |
tree | 3531aa883c5ba10ed9f1c2c739c3bd00d1f05c5c /engines/sci/engine/kernel32.cpp | |
parent | 494a7fa8abc41915b70f37047149e23fa1980e25 (diff) | |
download | scummvm-rg350-df37aff35756e03e02b47ce3483b06679a662ce6.tar.gz scummvm-rg350-df37aff35756e03e02b47ce3483b06679a662ce6.tar.bz2 scummvm-rg350-df37aff35756e03e02b47ce3483b06679a662ce6.zip |
Added the SCI2.1 kText kernel function (subop 0, kTextSize for now)
svn-id: r50265
Diffstat (limited to 'engines/sci/engine/kernel32.cpp')
-rw-r--r-- | engines/sci/engine/kernel32.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/engines/sci/engine/kernel32.cpp b/engines/sci/engine/kernel32.cpp index b317719252..93191947ba 100644 --- a/engines/sci/engine/kernel32.cpp +++ b/engines/sci/engine/kernel32.cpp @@ -511,6 +511,19 @@ reg_t kArray(EngineState *s, int argc, reg_t *argv) { return NULL_REG; } +reg_t kText(EngineState *s, int argc, reg_t *argv) { + switch (argv[0].toUint16()) { + case 0: + return kTextSize(s, argc - 1, argv + 1); + break; + default: + warning("kText(%d)", argv[0].toUint16()); + break; + } + + return s->r_acc; +} + reg_t kString(EngineState *s, int argc, reg_t *argv) { switch (argv[0].toUint16()) { case 0: { // New |