aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2009-10-12 12:03:06 +0000
committerFilippos Karapetis2009-10-12 12:03:06 +0000
commit81a2316bd5f67ebcc8c7703b369586b6a20318e1 (patch)
tree7ef9fd39d9fab434ee8808b29bfb23a7133437c1
parent5ab01ded3d2e7905413f846ec40511c362697ebf (diff)
downloadscummvm-rg350-81a2316bd5f67ebcc8c7703b369586b6a20318e1.tar.gz
scummvm-rg350-81a2316bd5f67ebcc8c7703b369586b6a20318e1.tar.bz2
scummvm-rg350-81a2316bd5f67ebcc8c7703b369586b6a20318e1.zip
Reverted the Common::String::printf() related commits, as the function works fine now under MSVC
svn-id: r44982
-rw-r--r--engines/sci/engine/vm.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/engines/sci/engine/vm.cpp b/engines/sci/engine/vm.cpp
index 6f6dc3420a..dacda2b644 100644
--- a/engines/sci/engine/vm.cpp
+++ b/engines/sci/engine/vm.cpp
@@ -110,8 +110,9 @@ static int validate_variable(reg_t *r, reg_t *stack_base, int type, int max, int
const char *names[4] = {"global", "local", "temp", "param"};
if (index < 0 || index >= max) {
- Common::String txt = "[VM] Attempt to use invalid " +
- Common::String::printf("%s variable %04x ", names[type], index);
+ Common::String txt = Common::String::printf(
+ "[VM] Attempt to use invalid %s variable %04x ",
+ names[type], index);
if (max == 0)
txt += "(variable type invalid)";
else
@@ -940,11 +941,10 @@ void run_vm(EngineState *s, int restoring) {
// Remove callk stack frame again
s->_executionStack.pop_back();
} else {
- Common::String warningMsg = "Dummy function " + kfun.orig_name;
- warningMsg += Common::String::printf("[0x%x]", opparams[0]);
- warningMsg += " invoked - ignoring. Params: ";
- warningMsg += Common::String::printf("%d", argc);
- warningMsg += " (";
+ Common::String warningMsg = "Dummy function " + kfun.orig_name +
+ Common::String::printf("[0x%x]", opparams[0]) +
+ " invoked - ignoring. Params: " +
+ Common::String::printf("%d", argc) + " (";
for (int i = 0; i < argc; i++) {
warningMsg += Common::String::printf("%04x:%04x", PRINT_REG(argv[i]));