diff --git a/Mara.Lib/Platforms/PatchProcess.cs b/Mara.Lib/Platforms/PatchProcess.cs index 3b9c046..3c628c8 100644 --- a/Mara.Lib/Platforms/PatchProcess.cs +++ b/Mara.Lib/Platforms/PatchProcess.cs @@ -7,8 +7,8 @@ namespace Mara.Lib.Platforms { public class PatchProcess { - protected MaraConfig maraConfig; - protected string tempFolder; + public MaraConfig maraConfig { get; set; } + public string tempFolder { get; set; } protected string oriFolder; protected string outFolder; protected string filePath; @@ -76,5 +76,11 @@ private void DeleteTempFolder() Directory.Delete(tempFolder, true); } + public void UpdateFolders(string newOriFolder, string newOutFolder) + { + this.oriFolder = newOriFolder; + this.outFolder = newOutFolder; + } + } } diff --git a/Unity.Mara.Lib/Assets/Mara.Lib/Runtime/Platforms/PatchProcess.cs b/Unity.Mara.Lib/Assets/Mara.Lib/Runtime/Platforms/PatchProcess.cs index b81e913..4f27c52 100644 --- a/Unity.Mara.Lib/Assets/Mara.Lib/Runtime/Platforms/PatchProcess.cs +++ b/Unity.Mara.Lib/Assets/Mara.Lib/Runtime/Platforms/PatchProcess.cs @@ -8,7 +8,7 @@ namespace Unity.Mara.Lib.Platforms public class PatchProcess { public MaraConfig maraConfig { get; set; } - protected string tempFolder; + public string tempFolder { get; set; } protected string oriFolder; protected string outFolder; protected string filePath; @@ -76,5 +76,11 @@ private void DeleteTempFolder() Directory.Delete(tempFolder, true); } + public void UpdateFolders(string newOriFolder, string newOutFolder) + { + this.oriFolder = newOriFolder; + this.outFolder = newOutFolder; + } + } }