0.462.0.416719
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
//
|
||||
}
|
||||
|
Reference in New Issue
Block a user