0.462.0.416719

This commit is contained in:
CloneTrooper1019
2021-01-20 14:45:58 -06:00
parent 1a34e9c849
commit 1acb895eaf
17 changed files with 63 additions and 70 deletions

View File

@ -33,9 +33,7 @@ namespace RobloxFiles.BinaryFormat.Chunks
if (instType == null)
{
if (RobloxFile.LogErrors)
Console.Error.WriteLine($"INST - Unknown class: {ClassName} while reading INST chunk.");
RobloxFile.LogError($"INST - Unknown class: {ClassName} while reading INST chunk.");
return;
}

View File

@ -33,17 +33,13 @@ namespace RobloxFiles.BinaryFormat.Chunks
if (child == null)
{
if (RobloxFile.LogErrors)
Console.Error.WriteLine($"PRNT: could not parent {childId} to {parentId} because child {childId} was null.");
RobloxFile.LogError($"PRNT: could not parent {childId} to {parentId} because child {childId} was null.");
continue;
}
if (parentId >= 0 && parent == null)
{
if (RobloxFile.LogErrors)
Console.Error.WriteLine($"PRNT: could not parent {childId} to {parentId} because parent {parentId} was null.");
RobloxFile.LogError($"PRNT: could not parent {childId} to {parentId} because parent {parentId} was null.");
continue;
}

View File

@ -58,9 +58,7 @@ namespace RobloxFiles.BinaryFormat.Chunks
if (instance == null)
{
if (RobloxFile.LogErrors)
Console.Error.WriteLine($"PROP: No instance @{id} for property {ClassName}.{Name}");
RobloxFile.LogError($"PROP: No instance @{id} for property {ClassName}.{Name}");
continue;
}
@ -368,9 +366,7 @@ namespace RobloxFiles.BinaryFormat.Chunks
if (info == null)
{
if (RobloxFile.LogErrors)
Console.Error.WriteLine($"Enum cast failed for {inst.ClassName}.{Name} using value {value}!");
RobloxFile.LogError($"Enum cast failed for {inst.ClassName}.{Name} using value {value}!");
return value;
}
@ -378,9 +374,7 @@ namespace RobloxFiles.BinaryFormat.Chunks
}
catch
{
if (RobloxFile.LogErrors)
Console.Error.WriteLine($"Enum cast failed for {inst.ClassName}.{Name} using value {value}!");
RobloxFile.LogError($"Enum cast failed for {inst.ClassName}.{Name} using value {value}!");
return value;
}
});
@ -545,9 +539,7 @@ namespace RobloxFiles.BinaryFormat.Chunks
break;
default:
if (RobloxFile.LogErrors)
Console.Error.WriteLine("Unhandled property type: {0}!", Type);
RobloxFile.LogError($"Unhandled property type: {Type}!");
break;
//
}