Skip to content

Commit

Permalink
Fix missing children (functions etc) for Borderlands UE-Explorer/UE-E…
Browse files Browse the repository at this point in the history
  • Loading branch information
EliotVU committed Apr 27, 2024
1 parent fc4eb1e commit fa4cff6
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion src/Core/Classes/UStruct.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,31 @@ protected override void Deserialize()
{
goto skipScriptText;
}
#endif
#if BORDERLANDS
// Swapped order...
if (Package.Build == UnrealPackage.GameBuild.BuildName.Borderlands)
{
Children = _Buffer.ReadObject<UField>();
Record(nameof(Children), Children);

ScriptText = _Buffer.ReadObject<UTextBuffer>();
Record(nameof(ScriptText), ScriptText);

// FIXME: another 2x32 uints here (IsConsoleCooked)

goto skipChildren;
}
#endif
if (!Package.IsConsoleCooked() && _Buffer.UE4Version < 117)
{
ScriptText = _Buffer.ReadObject<UTextBuffer>();
Record(nameof(ScriptText), ScriptText);
}
skipScriptText:
skipScriptText:
Children = _Buffer.ReadObject<UField>();
Record(nameof(Children), Children);
skipChildren:
#if BATMAN
if (Package.Build == UnrealPackage.GameBuild.BuildName.Batman4)
{
Expand Down

0 comments on commit fa4cff6

Please sign in to comment.