Skip to content

Commit

Permalink
More fixes for Batman.
Browse files Browse the repository at this point in the history
  • Loading branch information
EliotVU committed Aug 13, 2024
1 parent 8e3053c commit 1dc0cfd
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
16 changes: 12 additions & 4 deletions src/Core/Classes/Props/UProperty.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 122,19 @@ protected override void Deserialize()
: _Buffer.ReadUInt32();
Record(nameof(PropertyFlags), PropertyFlags);
#if BATMAN
if (Package.Build == BuildGeneration.RSS &&
_Buffer.LicenseeVersion >= 101)
if (Package.Build == BuildGeneration.RSS)
{
PropertyFlags = (PropertyFlags & 0xFFFF0000) >> 24;
Record(nameof(PropertyFlags), (PropertyFlagsLO)PropertyFlags);
if (_Buffer.LicenseeVersion >= 101)
{
PropertyFlags = (PropertyFlags & 0xFFFF0000) >> 24;
Record(nameof(PropertyFlags), (PropertyFlagsLO)PropertyFlags);
}

if (Package.Build == UnrealPackage.GameBuild.BuildName.Batman4)
{
PropertyFlags = (PropertyFlags & ~(PropertyFlags >> 2 & 1)) |
((ulong)PropertyFlagsLO.Net * (PropertyFlags >> 2 & 1));
}
}
#endif
#if XCOM2
Expand Down
8 changes: 3 additions & 5 deletions src/Core/Classes/UClass.cs
Original file line number Diff line number Diff line change
Expand Up @@ -410,13 410,11 @@ protected override void Deserialize()
#if BATMAN
if (Package.Build == BuildGeneration.RSS)
{
_Buffer.Skip(sizeof(int));
if (Package.Build == UnrealPackage.GameBuild.BuildName.Batman4)
if (_Buffer.LicenseeVersion >= 95)
{
_Buffer.Skip(sizeof(int));
int bm_v174 = _Buffer.ReadInt32();
Record(nameof(bm_v174), bm_v174);
}

_Buffer.ConformRecordPosition();
}
#endif
#if ROCKETLEAGUE
Expand Down
2 changes: 1 addition & 1 deletion src/UnrealPackage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 413,7 @@ public enum BuildName
/// 576/021
/// No Special support, but there's no harm in recognizing this build.
/// </summary>
[Build(576, 21, BuildGeneration.RSS)] Batman1,
[Build(576, 21)] Batman1,

/// <summary>
/// 576/100
Expand Down

0 comments on commit 1dc0cfd

Please sign in to comment.