diff options
author | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2018-07-25 04:03:01 +0300 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2018-07-25 04:03:01 +0300 |
commit | 2ac5c03f3ced86afb12048a445076732eea57893 (patch) | |
tree | 98a41e1b83eb0e73f5c4b35458e127c4742949ab | |
parent | 4c7343d16002e178d3298eb74c33a10eb557cca1 (diff) |
NTSC symlinks syncronization fixed
-rw-r--r-- | WorkerForm.cs | 10 |
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);
|