Skip to content

Commit b9e802a

Browse files
committed
Fix RSSContextToken in BM1
1 parent 46fc743 commit b9e802a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/Core/Classes/UDefaultProperty.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ private bool DeserializeNextTag()
314314
return DeserializeTagUE1();
315315
}
316316
#if BATMAN
317-
if (_Buffer.Package.Build == BuildGeneration.RSS)
317+
if (_Buffer.Package.Build == BuildGeneration.RSS && _Buffer.LicenseeVersion > 21)
318318
{
319319
return DeserializeTagByOffset();
320320
}
@@ -501,7 +501,7 @@ private void DeserializeTypeDataUE3()
501501
case PropertyType.ByteProperty:
502502
if (_Buffer.Version >= (uint)PackageObjectLegacyVersion.EnumNameAddedToBytePropertyTag
503503
#if BATMAN
504-
&& _Buffer.Package.Build.Generation != BuildGeneration.RSS
504+
&& (_Buffer.Package.Build.Generation != BuildGeneration.RSS || _Buffer.LicenseeVersion <= 21)
505505
#endif
506506
)
507507
{

src/Core/Tables/UExportTableItem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ public void Deserialize(IUnrealStream stream)
173173
_ArchetypeIndex = stream.ReadInt32();
174174
}
175175
#if BATMAN
176-
if (stream.Package.Build == BuildGeneration.RSS)
176+
if (stream.Package.Build == BuildGeneration.RSS && stream.LicenseeVersion > 21)
177177
{
178178
stream.Skip(sizeof(int));
179179
}

src/UnrealPackage.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ public enum BuildName
519519
///
520520
/// 576/021 (Missing most changes guarded by <see cref="BuildGeneration.RSS"/>)
521521
/// </summary>
522-
[Build(576, 21)] [BuildEngineBranch(typeof(EngineBranchRSS))]
522+
[Build(576, 21, BuildGeneration.RSS)] [BuildEngineBranch(typeof(EngineBranchRSS))]
523523
Batman1,
524524

525525
/// <summary>

0 commit comments

Comments
 (0)