aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorMatthew Hoops2009-12-21 14:46:07 +0000
committerMatthew Hoops2009-12-21 14:46:07 +0000
commit482812a1fffe8def124b41a1b1e713e59254626e (patch)
tree18c94a97d406000a4fd34787ac9194d23288c1be /engines/sci
parentef79d7f017610e15df5ea6b4c6d6a3b218d4d39f (diff)
downloadscummvm-rg350-482812a1fffe8def124b41a1b1e713e59254626e.tar.gz
scummvm-rg350-482812a1fffe8def124b41a1b1e713e59254626e.tar.bz2
scummvm-rg350-482812a1fffe8def124b41a1b1e713e59254626e.zip
Update/add some comments/TODOs.
svn-id: r46463
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/engine/kernel32.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/engines/sci/engine/kernel32.cpp b/engines/sci/engine/kernel32.cpp
index c6ac0324d9..9e07dacbc0 100644
--- a/engines/sci/engine/kernel32.cpp
+++ b/engines/sci/engine/kernel32.cpp
@@ -366,11 +366,11 @@ reg_t kArray(EngineState *s, int argc, reg_t *argv) {
SciArray<reg_t> *array = s->_segMan->lookupArray(argv[1]);
return make_reg(0, array->getSize());
}
- case 2: { // At
+ case 2: { // At (return value at an index)
SciArray<reg_t> *array = s->_segMan->lookupArray(argv[1]);
return array->getValue(argv[2].toUint16());
}
- case 3: { // Atput
+ case 3: { // Atput (put value at an index)
SciArray<reg_t> *array = s->_segMan->lookupArray(argv[1]);
uint32 index = argv[2].toUint16();
@@ -459,9 +459,9 @@ reg_t kString(EngineState *s, int argc, reg_t *argv) {
}
case 1: // Size
return make_reg(0, s->_segMan->getString(argv[1]).size());
- case 2: // At
+ case 2: // At (return value at an index)
return make_reg(0, s->_segMan->getString(argv[1])[argv[2].toUint16()]);
- case 3: { // Atput
+ case 3: { // Atput (put value at an index)
SciString *string = s->_segMan->lookupString(argv[1]);
uint32 index = argv[2].toUint16();
@@ -553,12 +553,15 @@ reg_t kString(EngineState *s, int argc, reg_t *argv) {
return make_reg(0, string.size());
}
case 11: // Printf
+ // TODO: Return a new formatting string
warning("kString(Printf)");
break;
case 12: // Printf Buf
+ // TODO: Store a formatted string in a specified string
warning("kString(PrintfBuf)");
break;
case 13: // atoi
+ // TODO: String to integer
warning("kString(atoi)");
break;
default: