0.447.1.411123

This commit is contained in:
CloneTrooper1019
2020-09-12 20:16:19 -05:00
parent 0312a1559c
commit 4240337863
37 changed files with 663 additions and 89 deletions

View File

@ -107,11 +107,12 @@ namespace RobloxFiles.XmlFormat
};
if (!tokenHandler.ReadProperty(prop, propNode))
Console.WriteLine("Could not read property: " + prop.GetFullName() + '!');
if (RobloxFile.LogErrors)
Console.Error.WriteLine("Could not read property: " + prop.GetFullName() + '!');
instance.AddProperty(ref prop);
}
else
else if (RobloxFile.LogErrors)
{
Console.WriteLine("No IXmlPropertyToken found for property type: " + propType + '!');
}

View File

@ -94,7 +94,9 @@ namespace RobloxFiles.XmlFormat
if (handler == null)
{
Console.WriteLine("XmlDataWriter.WriteProperty: No token handler found for property type: {0}", propType);
if (RobloxFile.LogErrors)
Console.Error.WriteLine("XmlDataWriter.WriteProperty: No token handler found for property type: {0}", propType);
return null;
}

View File

@ -30,6 +30,9 @@ namespace RobloxFiles.XmlFormat.PropertyTokens
}
catch
{
if (!RobloxFile.LogErrors)
return true;
Console.WriteLine("ContentToken: Got illegal base64 string: {0}", data);
}
}

View File

@ -98,7 +98,10 @@ namespace RobloxFiles
else if (refId != "null")
{
string name = refProp.GetFullName();
Console.WriteLine("XmlRobloxFile: Could not resolve reference for {0}", name);
if (LogErrors)
Console.Error.WriteLine("XmlRobloxFile: Could not resolve reference for {0}", name);
refProp.Value = null;
}
}