From 2959e9376f061d2fbad8563d8f4d4b99b93d9bba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20Garau=20Mart=C3=ADnez?= Date: Sat, 26 Mar 2022 20:14:11 +0100 Subject: [PATCH] Added new Functions for Unity GUI --- Mara.Lib/Platforms/PatchProcess.cs | 10 ++++++++-- .../Assets/Mara.Lib/Runtime/Platforms/PatchProcess.cs | 8 +++++++- 2 files changed, 15 insertions(+), 3 deletions(-) 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; + } + } }