diff options
author | Filippos Karapetis | 2010-01-30 01:45:59 +0000 |
---|---|---|
committer | Filippos Karapetis | 2010-01-30 01:45:59 +0000 |
commit | 928b4a6df6cc24c57ce899c431a5d98da4325af8 (patch) | |
tree | 0205b2d0ea7b49158ebb1e356f3b60b850c29fb9 /engines/sci/engine/kernel32.cpp | |
parent | 42ec4e37801b7724380437033c86180e79b9a67a (diff) | |
download | scummvm-rg350-928b4a6df6cc24c57ce899c431a5d98da4325af8.tar.gz scummvm-rg350-928b4a6df6cc24c57ce899c431a5d98da4325af8.tar.bz2 scummvm-rg350-928b4a6df6cc24c57ce899c431a5d98da4325af8.zip |
Added support for String types to kFormat (seems to work but needs testing...)
svn-id: r47694
Diffstat (limited to 'engines/sci/engine/kernel32.cpp')
-rw-r--r-- | engines/sci/engine/kernel32.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/engines/sci/engine/kernel32.cpp b/engines/sci/engine/kernel32.cpp index 6a112af0a3..1a63eceba9 100644 --- a/engines/sci/engine/kernel32.cpp +++ b/engines/sci/engine/kernel32.cpp @@ -617,15 +617,7 @@ reg_t kString(EngineState *s, int argc, reg_t *argv) { warning("kString(Printf)"); break; case 12: // Printf Buf - if (argc == 3) - return kFormat(s, argc - 1, argv + 1); - else - // TODO - // For some reason, argc > 3 crashes, e.g. in Torin full (there's a format - // string %s%s, but the string passed for the first %s is invalid). Perhaps - // a list is passed in this case? - warning("kString(PrintBuf) - parameter count %d not supported", argc); - break; + return kFormat(s, argc - 1, argv + 1); case 13: { // atoi Common::String string = s->_segMan->getString(argv[1]); return make_reg(0, (uint16)atoi(string.c_str())); |