From a4b285a1eaba6157842cf7ce88d48208a1e6ff5b Mon Sep 17 00:00:00 2001 From: Emilian Roman Date: Sun, 18 Nov 2018 07:56:21 +0800 Subject: [PATCH] Conduct quick variable renaming & formatting --- AmaiSosu/Backup.cs | 24 ++++++++++++------------ AmaiSosu/Main.cs | 4 ++-- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/AmaiSosu/Backup.cs b/AmaiSosu/Backup.cs index 310e5a6..4c2cf90 100644 --- a/AmaiSosu/Backup.cs +++ b/AmaiSosu/Backup.cs @@ -90,11 +90,11 @@ private void MoveHac2To(string backupDir) const string hac2Dll = "loader.dll"; const string hac2Dir = "controls"; - var srcPath = Path.Combine(_path, hac2Dir, hac2Dll); - var dstPath = Path.Combine(backupDir, hac2Dll); + var source = Path.Combine(_path, hac2Dir, hac2Dll); + var target = Path.Combine(backupDir, hac2Dll); - if (File.Exists(srcPath)) - File.Move(srcPath, dstPath); + if (File.Exists(source)) + File.Move(source, target); } /// @@ -107,11 +107,11 @@ private void MoveFilesTo(string destination) { foreach (var dir in Directories) { - var srcPath = Path.Combine(_path, dir); - var dstPath = Path.Combine(destination, dir); + var source = Path.Combine(_path, dir); + var target = Path.Combine(destination, dir); - if (Directory.Exists(srcPath)) - Directory.Move(srcPath, dstPath); + if (Directory.Exists(source)) + Directory.Move(source, target); } } @@ -125,11 +125,11 @@ private void MoveDirectoriesTo(string destination) { foreach (var file in Files) { - var srcPath = Path.Combine(_path, file); - var dstPath = Path.Combine(destination, file); + var source = Path.Combine(_path, file); + var target = Path.Combine(destination, file); - if (File.Exists(srcPath)) - File.Move(srcPath, dstPath); + if (File.Exists(source)) + File.Move(source, target); } } } diff --git a/AmaiSosu/Main.cs b/AmaiSosu/Main.cs index 087eb7c..e7d3eb6 100644 --- a/AmaiSosu/Main.cs +++ b/AmaiSosu/Main.cs @@ -114,13 +114,13 @@ public void Install() private void MoveOpenSauceIde() { const string dirName = "OpenSauceIDE"; - + var source = System.IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData), "Kornner Studios", "OpenSauce", dirName); var target = System.IO.Path.Combine(Path, dirName); - + Copy.All(new DirectoryInfo(source), new DirectoryInfo(target)); Directory.Delete(source, true); }