Skip to content

Commit 765341a

Browse files
committed
Added UE4.24 constants
1 parent 68e2b8d commit 765341a

File tree

2 files changed

+30
-10
lines changed

2 files changed

+30
-10
lines changed

Unreal/UnCore.h

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2578,7 +2578,8 @@ enum
25782578
VER_UE4_21 = 517,
25792579
VER_UE4_22 = 517,
25802580
VER_UE4_23 = 517,
2581-
VER_UE4_24 = 517,
2581+
VER_UE4_ADDED_PACKAGE_OWNER = 518,
2582+
VER_UE4_24 = 518,
25822583
// look for NEW_ENGINE_VERSION over the code to find places where version constants should be inserted.
25832584
// LATEST_SUPPORTED_UE4_VERSION should be updated too.
25842585
};
@@ -2606,6 +2607,7 @@ struct FFrameworkObjectVersion
26062607
// UE4.19 = 33
26072608
// UE4.20, UE4.21 = 34
26082609
// UE4.22, UE4.23 = 35
2610+
// UE4.24 = 36
26092611

26102612
VersionPlusOne,
26112613
LatestVersion = VersionPlusOne - 1
@@ -2644,6 +2646,8 @@ struct FFrameworkObjectVersion
26442646
return (Type)34;
26452647
if (Ar.Game < GAME_UE4(24))
26462648
return (Type)35;
2649+
if (Ar.Game < GAME_UE4(25))
2650+
return (Type)36;
26472651
// NEW_ENGINE_VERSION
26482652
return LatestVersion;
26492653
}
@@ -2669,6 +2673,7 @@ struct FEditorObjectVersion
26692673
// UE4.22 = 30
26702674
StaticMeshDeprecatedRawMesh = 28, //todo: editor mesh
26712675
// UE4.23 = 34
2676+
// UE4.24 = 37
26722677

26732678
VersionPlusOne,
26742679
LatestVersion = VersionPlusOne - 1
@@ -2712,6 +2717,8 @@ struct FEditorObjectVersion
27122717
return (Type)30;
27132718
if (Ar.Game < GAME_UE4(24))
27142719
return (Type)34;
2720+
if (Ar.Game < GAME_UE4(25))
2721+
return (Type)37;
27152722
// NEW_ENGINE_VERSION
27162723
return LatestVersion;
27172724
}
@@ -2743,7 +2750,7 @@ struct FSkeletalMeshCustomVersion
27432750
DeprecateSectionDisabledFlag = 15,
27442751
// UE4.20-UE4.22 = 16
27452752
SectionIgnoreByReduceAdded = 16,
2746-
// UE4.23 = 17
2753+
// UE4.23-UE4.24 = 17
27472754
SkinWeightProfiles = 17, //todo: FSkeletalMeshLODModel::Serialize (editor mesh)
27482755

27492756
VersionPlusOne,
@@ -2779,7 +2786,7 @@ struct FSkeletalMeshCustomVersion
27792786
return DeprecateSectionDisabledFlag;
27802787
if (Ar.Game < GAME_UE4(23))
27812788
return SectionIgnoreByReduceAdded;
2782-
if (Ar.Game < GAME_UE4(24))
2789+
if (Ar.Game < GAME_UE4(25))
27832790
return SkinWeightProfiles;
27842791
// NEW_ENGINE_VERSION
27852792
return LatestVersion;
@@ -2794,7 +2801,7 @@ struct FCoreObjectVersion
27942801

27952802
// UE4.12-UE4.14 = 1
27962803
// UE4.15-UE4.21 = 2
2797-
// UE4.22, UE4.23 = 3
2804+
// UE4.22-UE4.24 = 3
27982805
SkeletalMaterialEditorDataStripping = 3,
27992806

28002807
VersionPlusOne,
@@ -2813,7 +2820,7 @@ struct FCoreObjectVersion
28132820
return (Type)1;
28142821
if (Ar.Game < GAME_UE4(22))
28152822
return (Type)2;
2816-
if (Ar.Game < GAME_UE4(24))
2823+
if (Ar.Game < GAME_UE4(25))
28172824
return SkeletalMaterialEditorDataStripping;
28182825
// NEW_ENGINE_VERSION
28192826
return LatestVersion;
@@ -2837,6 +2844,7 @@ struct FRenderingObjectVersion
28372844
// UE4.21 = 27
28382845
// UE4.22 = 28
28392846
// UE4.23 = 31
2847+
// UE4.24 = 36
28402848

28412849
VersionPlusOne,
28422850
LatestVersion = VersionPlusOne - 1
@@ -2877,6 +2885,8 @@ struct FRenderingObjectVersion
28772885
return (Type)28;
28782886
if (Ar.Game < GAME_UE4(24))
28792887
return (Type)31;
2888+
if (Ar.Game < GAME_UE4(25))
2889+
return (Type)36;
28802890
// NEW_ENGINE_VERSION
28812891
return LatestVersion;
28822892
}
@@ -2887,7 +2897,7 @@ struct FAnimObjectVersion
28872897
enum Type
28882898
{
28892899
BeforeCustomVersionWasAdded = 0,
2890-
// UE4.21-UE4.23 = 2
2900+
// UE4.21-UE4.24 = 2
28912901
StoreMarkerNamesOnSkeleton = 2,
28922902

28932903
VersionPlusOne,
@@ -2902,7 +2912,7 @@ struct FAnimObjectVersion
29022912
return (Type)ver;
29032913
if (Ar.Game < GAME_UE4(21))
29042914
return BeforeCustomVersionWasAdded;
2905-
if (Ar.Game < GAME_UE4(24))
2915+
if (Ar.Game < GAME_UE4(25))
29062916
return StoreMarkerNamesOnSkeleton;
29072917
// NEW_ENGINE_VERSION
29082918
return LatestVersion;
@@ -2922,7 +2932,7 @@ struct FAnimPhysObjectVersion
29222932
AddLODToCurveMetaData = 12,
29232933
// UE4.19 = 16
29242934
ChangeRetargetSourceReferenceToSoftObjectPtr = 15,
2925-
// UE4.20-UE4.23 = 17
2935+
// UE4.20-UE4.24 = 17
29262936

29272937
VersionPlusOne,
29282938
LatestVersion = VersionPlusOne - 1
@@ -2944,7 +2954,7 @@ struct FAnimPhysObjectVersion
29442954
return AddLODToCurveMetaData;
29452955
if (Ar.Game < GAME_UE4(20))
29462956
return (Type)16;
2947-
if (Ar.Game < GAME_UE4(24))
2957+
if (Ar.Game < GAME_UE4(25))
29482958
return (Type)17;
29492959
// NEW_ENGINE_VERSION
29502960
return LatestVersion;
@@ -2990,6 +3000,8 @@ struct FReleaseObjectVersion
29903000
return (Type)20;
29913001
if (Ar.Game < GAME_UE4(24))
29923002
return (Type)23;
3003+
if (Ar.Game < GAME_UE4(25))
3004+
return (Type)28;
29933005
// NEW_ENGINE_VERSION
29943006
return LatestVersion;
29953007
}

Unreal/UnPackage.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,8 +601,16 @@ void FPackageFileSummary::Serialize4(FArchive &Ar)
601601
int32 ThumbnailTableOffset;
602602
Ar << ThumbnailTableOffset;
603603

604-
// guid and generations
604+
// guid
605605
Ar << Guid;
606+
607+
/* if (Ar.ArVer >= VER_UE4_ADDED_PACKAGE_OWNER) -- disabled at the moment for Fortnite compatibility
608+
{
609+
FGuid PersistentGuid, OwnerPersistentGuid;
610+
Ar << PersistentGuid << OwnerPersistentGuid;
611+
} */
612+
613+
// generations
606614
int32 Count;
607615
Ar << Count;
608616
Generations.Empty(Count);

0 commit comments

Comments
 (0)