diff options
author | Lars Skovlund | 2010-07-01 22:38:36 +0000 |
---|---|---|
committer | Lars Skovlund | 2010-07-01 22:38:36 +0000 |
commit | 4dd02d2f4ab05839f86db9102c954ca34bfc1c34 (patch) | |
tree | dbb1155ca84bf848d04c78092bc5638c5c833cf0 /engines/sci/engine/kernel32.cpp | |
parent | 32dfd0cedce13f00b512d87b3b9bb7c383cc3b45 (diff) | |
download | scummvm-rg350-4dd02d2f4ab05839f86db9102c954ca34bfc1c34.tar.gz scummvm-rg350-4dd02d2f4ab05839f86db9102c954ca34bfc1c34.tar.bz2 scummvm-rg350-4dd02d2f4ab05839f86db9102c954ca34bfc1c34.zip |
Support the CD kernel call (stub) and add the TRUE_REG constant.
Would be nice to use this constant in pre-existing code.
svn-id: r50577
Diffstat (limited to 'engines/sci/engine/kernel32.cpp')
-rw-r--r-- | engines/sci/engine/kernel32.cpp | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/engines/sci/engine/kernel32.cpp b/engines/sci/engine/kernel32.cpp index 2d492eb3ee..8b854dbca1 100644 --- a/engines/sci/engine/kernel32.cpp +++ b/engines/sci/engine/kernel32.cpp @@ -898,7 +898,7 @@ reg_t kInPolygon(EngineState *s, int argc, reg_t *argv) { reg_t kCreateTextBitmap(EngineState *s, int argc, reg_t *argv) { // TODO: argument 0 is usually 0, and arguments 1 and 2 are usually 1 switch (argv[0].toUint16()) { - case 0: + case 0: { if (argc != 4) { warning("kCreateTextBitmap(0): expected 4 arguments, got %i", argc); return NULL_REG; @@ -907,6 +907,23 @@ reg_t kCreateTextBitmap(EngineState *s, int argc, reg_t *argv) { Common::String text = s->_segMan->getString(readSelector(s->_segMan, object, SELECTOR(text))); debug("kCreateTextBitmap: %s", text.c_str()); } + default: + warning("CreateTextBitmap(%d)", argv[0].toUint16()); + } + + return NULL_REG; +} + +reg_t kCD(EngineState *s, int argc, reg_t *argv) +{ + // TODO: Stub + switch (argv[0].toUint16()) { + case 0: + // Return whether the contents of disc argv[1] is available. + return TRUE_REG; + default: + warning("CD(%d)", argv[0].toUint16()); + } return NULL_REG; } |