Skip to content

Commit

Permalink
Conduct quick variable renaming & formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
MirisWisdom committed Nov 17, 2018
1 parent 504601f commit a4b285a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
24 changes: 12 additions & 12 deletions AmaiSosu/Backup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/// <summary>
Expand All @@ -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);
}
}

Expand All @@ -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);
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions AmaiSosu/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit a4b285a

Please sign in to comment.