Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/hakchi2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-10-12 14:21:33 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-10-12 14:21:33 +0300
commit4e8c0541b367462cbc0ef36f3524aeeede454511 (patch)
treeff62868faa8a0108680656e1a4a9f45d97f62cdb /WorkerForm.cs
parent6bbdcdab42bae2cb94f2633d01e7e12116a997f3 (diff)
Garbage cleanup
Diffstat (limited to 'WorkerForm.cs')
-rw-r--r--WorkerForm.cs12
1 files changed, 11 insertions, 1 deletions
diff --git a/WorkerForm.cs b/WorkerForm.cs
index 45cf50de..278e0d19 100644
--- a/WorkerForm.cs
+++ b/WorkerForm.cs
@@ -815,6 +815,7 @@ namespace com.clusterrr.hakchi_gui
SetProgress(progress, maxProgress);
ShowSplashScreen();
+ UpdateRootfs();
SetStatus(Resources.BuildingFolders);
if (Directory.Exists(tempDirectory))
@@ -849,6 +850,7 @@ namespace com.clusterrr.hakchi_gui
SetProgress(progress, maxProgress);
clovershell.ExecuteSimple(string.Format("umount {0}", gamesPath));
+ clovershell.ExecuteSimple(string.Format($"mkdir -p {rootFsPath}{Games}", rootFsPath, gamesPath, installPath), 3000, true);
clovershell.ExecuteSimple(string.Format("rm -rf {0}{1}/CLV-* {0}{1}/??? {2}/menu", rootFsPath, gamesPath, installPath), 5000, true);
if (gamesTar.Length > 0)
@@ -910,7 +912,6 @@ namespace com.clusterrr.hakchi_gui
};
SetStatus(Resources.UploadingConfig);
- UpdateRootfs();
SyncConfig(Config);
#if !DEBUG
if (Directory.Exists(tempDirectory))
@@ -933,6 +934,15 @@ namespace com.clusterrr.hakchi_gui
public void UpdateRootfs()
{
var modPath = Path.Combine(modsDirectory, Mod);
+ var garbage = Directory.GetFiles(modPath, "p0000_config", SearchOption.AllDirectories);
+ foreach (var file in garbage)
+ {
+ try
+ {
+ File.Delete(file);
+ }
+ catch { }
+ }
var rootFsPathes = Directory.GetDirectories(modsDirectory, "rootfs", SearchOption.AllDirectories);
if (rootFsPathes.Length == 0) return;
var rootFsPath = rootFsPathes[0];