Skip to content

Commit

Permalink
Ignore some subdirs
Browse files Browse the repository at this point in the history
  • Loading branch information
uholeschak committed Jan 25, 2025
1 parent d30ae5d commit d0595b1
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Tools/Psdz/AssemblyPatcher/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,12 @@ static int Main(string[] args)
string[] files = Directory.GetFiles(assemblyDir, "*.*", SearchOption.AllDirectories);
foreach (string file in files)
{
string relPath = Path.GetRelativePath(assemblyDir, file);
if (string.IsNullOrEmpty(relPath))
{
continue;
}

string baseName = Path.GetFileNameWithoutExtension(file);
if (string.IsNullOrEmpty(baseName))
{
Expand All @@ -150,6 +156,13 @@ static int Main(string[] args)
continue;
}

if (relPath.StartsWith("runtimes") ||
relPath.StartsWith("x86") ||
relPath.StartsWith("x64"))
{
continue;
}

if (baseName.EndsWith("interop", StringComparison.OrdinalIgnoreCase) ||
baseName.EndsWith("IDESKernel", StringComparison.OrdinalIgnoreCase) ||
baseName.EndsWith("procdump", StringComparison.OrdinalIgnoreCase) ||
Expand Down

0 comments on commit d0595b1

Please sign in to comment.