using T3.Core.Resource; using T3.Core.Settings; namespace ProjectUpdater; internal sealed partial class Conversion { private FileChangeInfo ConvertShaderFile(string filePath, string fileContents, string originalRootDirectory, string newRootDirectory) { var relativePath = Path.GetRelativePath(originalRootDirectory, filePath); var newPath = Path.Combine(newRootDirectory, FileLocations.AssetsSubfolder, relativePath); fileContents = fileContents.Replace("Lib/", "") .Replace(@"Lib\\", ""); return new FileChangeInfo(newPath, fileContents.Replace("Lib/shared", "shared")); } }