mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-27 16:53:33 +00:00
Fix #739 (test failures).
Use JSON in debug serializer output unless it fails due to e.g. cyclic values, in which case use toSource. Disable file stats code by default, since its output isn't used. This was SVN commit r8975.
This commit is contained in:
@@ -149,9 +149,9 @@ void CDebugSerializer::PutString(const char* name, const std::string& value)
|
||||
|
||||
void CDebugSerializer::PutScriptVal(const char* name, jsval value)
|
||||
{
|
||||
std::string source = m_ScriptInterface.StringifyJSON(value, true);
|
||||
std::wstring source = m_ScriptInterface.ToString(value, true);
|
||||
|
||||
m_Stream << INDENT << name << ": " << source << "\n";
|
||||
m_Stream << INDENT << name << ": " << utf8_from_wstring(source) << "\n";
|
||||
}
|
||||
|
||||
void CDebugSerializer::PutRaw(const char* name, const u8* data, size_t len)
|
||||
|
||||
Reference in New Issue
Block a user