synced with scummvm
This commit is contained in:
parent
fca3a20334
commit
7aa79c880d
115 changed files with 5209 additions and 2608 deletions
|
@ -154,7 +154,14 @@ static void debugHelper(const char *s, va_list va, bool caret = true) {
|
|||
char buf[STRINGBUFLEN];
|
||||
vsnprintf(in_buf, STRINGBUFLEN, s, va);
|
||||
|
||||
strncpy(buf, in_buf, STRINGBUFLEN);
|
||||
// Next, give the active engine (if any) a chance to augment the message,
|
||||
// but only if not used from debugN.
|
||||
if (g_engine && caret) {
|
||||
g_engine->errorString(in_buf, buf, STRINGBUFLEN);
|
||||
} else {
|
||||
strncpy(buf, in_buf, STRINGBUFLEN);
|
||||
}
|
||||
buf[STRINGBUFLEN-1] = '\0';
|
||||
|
||||
if (caret) {
|
||||
buf[STRINGBUFLEN-2] = '\0';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue