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>2018-07-25 04:03:01 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2018-07-25 04:03:01 +0300
commit2ac5c03f3ced86afb12048a445076732eea57893 (patch)
tree98a41e1b83eb0e73f5c4b35458e127c4742949ab
parent4c7343d16002e178d3298eb74c33a10eb557cca1 (diff)
NTSC symlinks syncronization fixed
-rw-r--r--WorkerForm.cs10
1 files changed, 6 insertions, 4 deletions
diff --git a/WorkerForm.cs b/WorkerForm.cs
index c5d1add5..cc06ff26 100644
--- a/WorkerForm.cs
+++ b/WorkerForm.cs
@@ -986,7 +986,7 @@ namespace com.clusterrr.hakchi_gui
Directory.CreateDirectory(exportDirectory);
string lastDirectory = null;
long pos = 0;
- if (!ExecuteTool("rsync.exe", $"-ac --delete --progress --exclude=title.fnt --exclude=copyright.fnt \"{cygwinPath(tempGamesDirectory)}\" \"{cygwinPath(exportDirectory)}\"",
+ if (!ExecuteTool("rsync.exe", $"-rlptoDc --delete --progress --exclude=title.fnt --exclude=copyright.fnt \"{cygwinPath(tempGamesDirectory)}\" \"{cygwinPath(exportDirectory)}\"",
null, false, delegate (string line)
{
if (line.EndsWith("/"))
@@ -1417,15 +1417,17 @@ namespace com.clusterrr.hakchi_gui
var realTargetGamePath = Path.Combine(Path.Combine(Path.Combine(exportDirectory, SubConsoleDirectory), string.Format("{0:D3}", menuIndex)), originalCode);
if (Directory.Exists(realTargetGamePath))
{
- if (!ExecuteTool("rsync.exe", $"-ac --delete \"{cygwinPath(realTargetGamePath)}\" \"{cygwinPath(targetDirectory)}\""))
+ if (!ExecuteTool("rsync.exe", $"-rlptoDc --delete \"{cygwinPath(realTargetGamePath)}\" \"{cygwinPath(targetDirectory)}\""))
throw new Exception("Can't rsync to USB drive");
}
}
- if (!Directory.Exists(Path.Combine(targetGamePath, "autoplay")))
+ string autoplay = Path.Combine(targetGamePath, "autoplay");
+ if (!Directory.Exists(autoplay) && !File.Exists(autoplay))
Directory.CreateDirectory(Path.Combine(targetGamePath, "autoplay"));
if (ConfigIni.ConsoleType == MainForm.ConsoleType.NES || ConfigIni.ConsoleType == MainForm.ConsoleType.Famicom)
{
- if (!Directory.Exists(Path.Combine(targetGamePath, "pixelart")))
+ string pixelart = Path.Combine(targetGamePath, "pixelart");
+ if (!Directory.Exists(pixelart) && !File.Exists(pixelart))
Directory.CreateDirectory(Path.Combine(targetGamePath, "pixelart"));
}
File.Copy(desktopFilePath, Path.Combine(targetGamePath, $"{originalCode}.desktop"), true);