Skip to content

Commit

Permalink
Fix package loading for Borderlands UE-Explorer/UE-Explorer#55
Browse files Browse the repository at this point in the history
  • Loading branch information
EliotVU committed Apr 27, 2024
1 parent 5b5030e commit fc4eb1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Eliot.UELib.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<DefineConstants>DECOMPILE;BINARYMETADATA;Forms;UE1;UE2;UE3;UE4;VENGEANCE;SWAT4;UNREAL2;INFINITYBLADE;BORDERLANDS2;GOW2;APB;SPECIALFORCE2;XIII;SINGULARITY;THIEF_DS;DEUSEX_IW;BORDERLANDS;MIRRORSEDGE;BIOSHOCK;HAWKEN;UT;DISHONORED;REMEMBERME;ALPHAPROTOCOL;VANGUARD;TERA;MKKE;TRANSFORMERS;XCOM2;DD2;DCUO;AA2;SPELLBORN;BATMAN;MOH;ROCKETLEAGUE;DNF;LSGAME;UNDYING;HP;DEVASTATION;SPLINTERCELL;AHIT</DefineConstants>
<DefineConstants>DECOMPILE;BINARYMETADATA;Forms;UE1;UE2;UE3;UE4;VENGEANCE;SWAT4;UNREAL2;INFINITYBLADE;BORDERLANDS2;GOW2;APB;SPECIALFORCE2;XIII;SINGULARITY;THIEF_DS;DEUSEX_IW;BORDERLANDS;MIRRORSEDGE;BIOSHOCK;HAWKEN;UT;DISHONORED;REMEMBERME;ALPHAPROTOCOL;VANGUARD;TERA;MKKE;TRANSFORMERS;XCOM2;DD2;DCUO;AA2;SPELLBORN;BATMAN;MOH;ROCKETLEAGUE;DNF;LSGAME;UNDYING;HP;DEVASTATION;BATTLEBORN;SPLINTERCELL;AHIT</DefineConstants>
<TargetFramework>net48</TargetFramework>
<OutputType>Library</OutputType>
<RootNamespace>UELib</RootNamespace>
Expand Down
7 changes: 2 additions & 5 deletions src/UnrealPackage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1111,9 +1111,6 @@ public void Deserialize(IUnrealStream stream)
// An FString converted to an FArray? Concatenating appUserName, appComputerName, appBaseDir, and appTimestamp.
stream.ReadArray(out UArray<byte> iStack_fc);
}
#endif
#if BORDERLANDS
if (stream.Package.Build == GameBuild.BuildName.Borderlands) stream.Skip(4);
#endif
if (stream.UE4Version >= 384)
{
Expand Down Expand Up @@ -1297,10 +1294,10 @@ public void Deserialize(IUnrealStream stream)
}
#endif
}
#if BORDERLANDS
#if BATTLEBORN
if (stream.Package.Build == GameBuild.BuildName.Battleborn)
{
// FIXME: Package format is being deserialzied incorrectly and fails here.
// FIXME: Package format is being deserialized incorrectly and fails here.
stream.ReadUInt32();
return;
}
Expand Down

0 comments on commit fc4eb1e

Please sign in to comment.