mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
Automatically replace %hs/%ls with %s in CLogger format strings.
Everything is char* now, so we don't need to mess around with different string types. Done with: ag -ls 'LOG(MESSAGE|MESSAGERENDER|WARNING|ERROR)' source | xargs perl -pi -e'1 while s/(LOG(MESSAGE|MESSAGERENDER|WARNING|ERROR).*)%[hl]s/$1%s/g' This was SVN commit r16187.
This commit is contained in:
@@ -258,7 +258,7 @@ void CBinarySerializerScriptImpl::HandleScriptVal(JS::HandleValue val)
|
||||
else
|
||||
{
|
||||
// Unrecognized class
|
||||
LOGERROR("Cannot serialise JS objects with unrecognized class '%hs'", jsclass->name);
|
||||
LOGERROR("Cannot serialise JS objects with unrecognized class '%s'", jsclass->name);
|
||||
throw PSERROR_Serialize_InvalidScriptValue();
|
||||
}
|
||||
}
|
||||
@@ -317,7 +317,7 @@ void CBinarySerializerScriptImpl::HandleScriptVal(JS::HandleValue val)
|
||||
}
|
||||
}
|
||||
|
||||
LOGERROR("Cannot serialise JS objects of type 'function': %ls", funcname.c_str());
|
||||
LOGERROR("Cannot serialise JS objects of type 'function': %s", funcname.c_str());
|
||||
throw PSERROR_Serialize_InvalidScriptValue();
|
||||
}
|
||||
case JSTYPE_STRING:
|
||||
|
||||
Reference in New Issue
Block a user