You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
UnrealBuildTool: Remove usage of obsolate BinarySerializer and replace with Json
#rnx [CL 34354327 by joe kirchoff in ue5-main branch]
This commit is contained in:
@@ -119,7 +119,7 @@ namespace UnrealBuildTool
|
||||
/// <returns>New hot reload state instance</returns>
|
||||
public static HotReloadState Load(FileReference Location)
|
||||
{
|
||||
return BinaryFormatterUtils.Load<HotReloadState>(Location);
|
||||
return JsonSerializerUtils.Load<HotReloadState>(Location);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -129,7 +129,7 @@ namespace UnrealBuildTool
|
||||
public void Save(FileReference Location)
|
||||
{
|
||||
DirectoryReference.CreateDirectory(Location.Directory);
|
||||
BinaryFormatterUtils.Save(Location, this);
|
||||
JsonSerializerUtils.Save(Location, this);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1304,7 +1304,7 @@ namespace UnrealBuildTool
|
||||
{
|
||||
throw new Exception(String.Format("Unable to find metadata file to patch action graph ({0})", TargetInfoFile));
|
||||
}
|
||||
WriteMetadataTargetInfo TargetInfo = BinaryFormatterUtils.Load<WriteMetadataTargetInfo>(TargetInfoFile);
|
||||
WriteMetadataTargetInfo TargetInfo = JsonSerializerUtils.Load<WriteMetadataTargetInfo>(TargetInfoFile);
|
||||
|
||||
// Update the module names
|
||||
bool bHasUpdatedModuleNames = false;
|
||||
@@ -1328,7 +1328,7 @@ namespace UnrealBuildTool
|
||||
if (bHasUpdatedModuleNames)
|
||||
{
|
||||
FileReference HotReloadTargetInfoFile = FileReference.Combine(TargetInfoFile.Directory, "Metadata-HotReload.dat");
|
||||
BinaryFormatterUtils.SaveIfDifferent(HotReloadTargetInfoFile, TargetInfo);
|
||||
JsonSerializerUtils.SaveIfDifferent(HotReloadTargetInfoFile, TargetInfo);
|
||||
|
||||
Action NewAction = new Action(Action.Inner);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user