Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
Adjust identation
Browse files Browse the repository at this point in the history
  • Loading branch information
lucoiso committed Nov 20, 2022
1 parent d1deca0 commit 551db40
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions Source/FSR/FSR.Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,15 @@ public FSR(ReadOnlyTargetRules Target) : base(Target)

// Some things changed from 4.27 to 5.0 and from 5.0 to 5.1, so we r copying the Version.h to Shaders folder as a .ush file
// To allow adjust the logic of the shaders based on the unreal engine version and this copy will occur when build the plugin
string VersionHeaderPath = System.IO.Path.Combine(EngineDirectory, "Source", "Runtime", "Launch", "Resources", "Version.h");
string DestinationVersionFile = System.IO.Path.Combine(ModuleDirectory, "..", "..", "Shaders", "Private", "Version.ush");
// Version.h is read only by default, we need to uncheck this attribute to allow overwrite the existing Version.ush on copy
if (System.IO.File.Exists(DestinationVersionFile))
{
System.IO.File.SetAttributes(DestinationVersionFile, System.IO.File.GetAttributes(DestinationVersionFile) & ~System.IO.FileAttributes.ReadOnly);
}
System.IO.File.Copy(VersionHeaderPath, DestinationVersionFile, true);
}
string VersionHeaderPath = System.IO.Path.Combine(EngineDirectory, "Source", "Runtime", "Launch", "Resources", "Version.h");
string DestinationVersionFile = System.IO.Path.Combine(ModuleDirectory, "..", "..", "Shaders", "Private", "Version.ush");

// Version.h is read only by default, we need to uncheck this attribute to allow overwrite the existing Version.ush on copy
if (System.IO.File.Exists(DestinationVersionFile))
{
System.IO.File.SetAttributes(DestinationVersionFile, System.IO.File.GetAttributes(DestinationVersionFile) & ~System.IO.FileAttributes.ReadOnly);
}

System.IO.File.Copy(VersionHeaderPath, DestinationVersionFile, true);
}
}

0 comments on commit 551db40

Please sign in to comment.