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

@ -87,7 +87,9 @@ namespace RobloxFiles
}
catch
{
Console.WriteLine($"RobloxFile - Got unknown Enum {name} in Attribute.");
if (RobloxFile.LogErrors)
Console.Error.WriteLine($"RobloxFile - Got unknown Enum {name} in Attribute.");
return null;
}
}

View File

@ -512,6 +512,11 @@ namespace RobloxFiles
if (field.GetCustomAttribute<ObsoleteAttribute>() != null)
continue;
if (fieldName == "Archivable" || fieldName.EndsWith("k__BackingField"))
continue;
else if (fieldName == "Bevel_Roundness")
fieldName = "Bevel Roundness";
PropertyType propType = PropertyType.Unknown;
if (Property.Types.ContainsKey(fieldType))

View File

@ -202,6 +202,9 @@ namespace RobloxFiles
}
else
{
if (!RobloxFile.LogErrors)
return false;
Console.Error.WriteLine($"RobloxFiles.Property - No defined member for {Instance.ClassName}.{Name}");
}
}
@ -236,6 +239,9 @@ namespace RobloxFiles
}
catch
{
if (!RobloxFile.LogErrors)
return;
Console.Error.WriteLine($"RobloxFiles.Property - Failed to cast value {value} into property {Instance.ClassName}.{Name}");
}
}
@ -252,6 +258,9 @@ namespace RobloxFiles
}
catch
{
if (!RobloxFile.LogErrors)
return;
Console.Error.WriteLine($"RobloxFiles.Property - Failed to implicitly cast value {value} into property {Instance.ClassName}.{Name}");
}
}