Skip to content

Commit

Permalink
Update main.csx
Browse files Browse the repository at this point in the history
  • Loading branch information
Aragas authored Aug 7, 2022
1 parent 4476ec3 commit 9ef9b2e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source-diff/main.csx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ if (!Directory.Exists(newBinPath))
// bin folder first
await DecompileFile("TaleWorlds.*", oldBinPath, oldBinPath, Path.Combine(oldSrc, binDirectory), stdOut, stdErr);
await DecompileFile("TaleWorlds.*", newBinPath, newBinPath, Path.Combine(newSrc, binDirectory), stdOut, stdErr);
await DiffDirectories(Path.Combine(oldSrc, binDirectory), Path.Combine(newSrc, binDirectory), "html");
await DiffDirectories(Path.Combine(oldSrc, binDirectory), Path.Combine(newSrc, binDirectory), "/html");

var oldModules = Directory.GetDirectories(Path.Combine(oldPath, modulesDirectory));
var newModules = Directory.GetDirectories(Path.Combine(newPath, modulesDirectory));
Expand All @@ -82,15 +82,15 @@ foreach (var module in oldModules)
var oldModuleSrc = Path.Combine(oldSrc, modulesDirectory, moduleDirectoryName, binDirectory);
var newModuleSrc = Path.Combine(newSrc, modulesDirectory, moduleDirectoryName, binDirectory);
if (!Directory.Exists(newModuleSrc)) Directory.CreateDirectory(newModuleSrc);
await DiffDirectories(oldModuleSrc, newModuleSrc, Path.Combine("html", modulesDirectory, moduleDirectoryName));
await DiffDirectories(oldModuleSrc, newModuleSrc, Path.Combine("/html", modulesDirectory, moduleDirectoryName));
}
foreach (var module in newModules)
{
var moduleDirectoryName = new DirectoryInfo(module).Name;
var oldModuleSrc = Path.Combine(oldSrc, modulesDirectory, moduleDirectoryName, binDirectory);
var newModuleSrc = Path.Combine(newSrc, modulesDirectory, moduleDirectoryName, binDirectory);
if (!Directory.Exists(oldModuleSrc)) Directory.CreateDirectory(oldModuleSrc);
await DiffDirectories(oldModuleSrc, newModuleSrc, Path.Combine("html", modulesDirectory, moduleDirectoryName));
await DiffDirectories(oldModuleSrc, newModuleSrc, Path.Combine("/html", modulesDirectory, moduleDirectoryName));
}

await Cli.Wrap("tree")
Expand Down

0 comments on commit 9ef9b2e

Please sign in to comment.