diff options
Diffstat (limited to 'engines/sci/engine/kstring.cpp')
-rw-r--r-- | engines/sci/engine/kstring.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/sci/engine/kstring.cpp b/engines/sci/engine/kstring.cpp index 0be3ac706b..82b72e4a9e 100644 --- a/engines/sci/engine/kstring.cpp +++ b/engines/sci/engine/kstring.cpp @@ -34,7 +34,7 @@ namespace Sci { #define CHECK_OVERFLOW1(pt, size, rv) \ if (((pt) - (str_base)) + (size) > maxsize) { \ - SCIkwarn(SCIkERROR, "String expansion exceeded heap boundaries\n"); \ + error("String expansion exceeded heap boundaries\n"); \ return rv;\ } @@ -51,7 +51,7 @@ char *kernel_lookup_text(EngineState *s, reg_t address, int index) { textres = s->resmgr->findResource(kResourceTypeText, address.offset, 0); if (!textres) { - SCIkwarn(SCIkERROR, "text.%03d not found\n", address); + error("text.%03d not found\n", address); return NULL; /* Will probably segfault */ } @@ -65,7 +65,7 @@ char *kernel_lookup_text(EngineState *s, reg_t address, int index) { if (textlen) return seeker; else { - SCIkwarn(SCIkERROR, "Index %d out of bounds in text.%03d\n", _index, address); + error("Index %d out of bounds in text.%03d\n", _index, address); return 0; } @@ -211,7 +211,7 @@ reg_t kSetSynonyms(EngineState *s, int funct_nr, int argc, reg_t *argv) { synonyms_nr, script); if (synonyms_nr > 16384) { - SCIkwarn(SCIkERROR, "Segtable corruption: script.%03d has %d synonyms!\n", + error("Segtable corruption: script.%03d has %d synonyms!\n", script, synonyms_nr); /* We used to reset the corrupted value here. I really don't think it's appropriate. * Lars */ @@ -706,7 +706,7 @@ reg_t kGetFarText(EngineState *s, int funct_nr, int argc, reg_t *argv) { if (!textres) { - SCIkwarn(SCIkERROR, "text.%d does not exist\n", UKPV(0)); + error("text.%d does not exist\n", UKPV(0)); return NULL_REG; } |