Fixed a few encoding errors.

This commit is contained in:
Max
2021-05-03 17:26:55 -05:00
parent 81b28a2d63
commit 2050723dbd
3 changed files with 24 additions and 12 deletions

View File

@ -68,25 +68,42 @@ namespace RobloxFiles.XmlFormat
{
case PropertyType.CFrame:
case PropertyType.Quaternion:
{
propType = "CoordinateFrame";
break;
}
case PropertyType.Enum:
{
propType = "token";
break;
}
case PropertyType.Rect:
{
propType = "Rect2D";
break;
}
case PropertyType.Int:
case PropertyType.Bool:
case PropertyType.Float:
case PropertyType.Int64:
case PropertyType.Double:
{
propType = propType.ToLower(CultureInfo.InvariantCulture);
break;
}
case PropertyType.String:
propType = (prop.HasRawBuffer ? "BinaryString" : "string");
{
if (prop.Value is Content)
propType = "Content";
else if (prop.Value is ProtectedString)
propType = "ProtectedString";
else if (prop.Value is byte[])
propType = "BinaryString";
else
propType = "string";
break;
default: break;
}
}
}