Output: Add namespace exclusions

This commit is contained in:
Katy Coe
2019-10-31 01:16:25 +01:00
parent 21d0080862
commit a9b7b8d7af
3 changed files with 27 additions and 2 deletions

View File

@@ -2,6 +2,7 @@
// All rights reserved
using System;
using System.Collections.Generic;
using System.IO;
namespace Il2CppInspector
@@ -49,10 +50,18 @@ namespace Il2CppInspector
if (il2cppInspectors == null)
Environment.Exit(1);
// Exclusions
var excludedNamespaces = new List<string> {
"System",
"UnityEngine",
"Mono",
"Microsoft.Win32"
};
// Write output file
int i = 0;
foreach (var il2cpp in il2cppInspectors)
new Il2CppDumper(il2cpp).WriteFile(outFile + (i++ > 0 ? "-" + (i-1) : ""));
new Il2CppDumper(il2cpp) {ExcludedNamespaces = excludedNamespaces}.WriteFile(outFile + (i++ > 0 ? "-" + (i-1) : ""));
}
}
}