Skip to content

Commit

Permalink
Added new Functions for Unity GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkmet98 committed Mar 26, 2022
1 parent 83bba12 commit 2959e93
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
10 changes: 8 additions & 2 deletions Mara.Lib/Platforms/PatchProcess.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -76,5 +76,11 @@ private void DeleteTempFolder()
Directory.Delete(tempFolder, true);
}

public void UpdateFolders(string newOriFolder, string newOutFolder)
{
this.oriFolder = newOriFolder;
this.outFolder = newOutFolder;
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -76,5 +76,11 @@ private void DeleteTempFolder()
Directory.Delete(tempFolder, true);
}

public void UpdateFolders(string newOriFolder, string newOutFolder)
{
this.oriFolder = newOriFolder;
this.outFolder = newOutFolder;
}

}
}

0 comments on commit 2959e93

Please sign in to comment.