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
parent6bbdcdab42bae2cb94f2633d01e7e12116a997f3 (diff)
Garbage cleanup
-rw-r--r--Apps/SnesGame.cs1
-rw-r--r--Properties/AssemblyInfo.cs4
-rw-r--r--WorkerForm.cs12
-rw-r--r--hakchi_gui.csproj4
4 files changed, 16 insertions, 5 deletions
diff --git a/Apps/SnesGame.cs b/Apps/SnesGame.cs
index 185159f5..83989559 100644
--- a/Apps/SnesGame.cs
+++ b/Apps/SnesGame.cs
@@ -140,6 +140,7 @@ namespace com.clusterrr.hakchi_gui
{ "WORLD MASTERS GOLF" }, // World Masters Golf (E).smc
{ "WWF SUPER WRESTLEMANI" }, // WWF Super WrestleMania (U) [!].smc
{ "WRESTLEMANIA" }, // WWF WrestleMania - The Arcade Game (U) [!].smc
+ { "SENSIBLE SOCCER" }, // Sensible Soccer - International Edition (E).smc
};
private static Dictionary<uint, CachedGameInfo> gameInfoCache = null;
diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs
index cf1f3259..1b127aa4 100644
--- a/Properties/AssemblyInfo.cs
+++ b/Properties/AssemblyInfo.cs
@@ -33,6 +33,6 @@ using System.Resources;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("2.0.21.40")]
-[assembly: AssemblyFileVersion("2.0.21.40")]
+[assembly: AssemblyVersion("2.0.21.41")]
+[assembly: AssemblyFileVersion("2.0.21.41")]
[assembly: NeutralResourcesLanguageAttribute("en-US")]
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];
diff --git a/hakchi_gui.csproj b/hakchi_gui.csproj
index 6ba08d0f..d2183b00 100644
--- a/hakchi_gui.csproj
+++ b/hakchi_gui.csproj
@@ -31,8 +31,8 @@
<PublisherName>Alexey %27Cluster%27 Avdyukhin</PublisherName>
<CreateWebPageOnPublish>true</CreateWebPageOnPublish>
<WebPage>index.html</WebPage>
- <ApplicationRevision>40</ApplicationRevision>
- <ApplicationVersion>2.0.21.40</ApplicationVersion>
+ <ApplicationRevision>41</ApplicationRevision>
+ <ApplicationVersion>2.0.21.41</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<CreateDesktopShortcut>true</CreateDesktopShortcut>
<PublishWizardCompleted>true</PublishWizardCompleted>