Add UnityEditor and JetBrains.Annotations to default ignored namespaces

This commit is contained in:
Katy Coe
2020-01-21 02:42:21 +01:00
parent ff90ab7c96
commit 4c29821ee0
3 changed files with 15 additions and 9 deletions

View File

@@ -31,12 +31,14 @@ namespace Il2CppInspector
[Option('e', "exclude-namespaces", Required = false, Separator = ',', HelpText = "Comma-separated list of namespaces to suppress in C# output, or 'none' to include all namespaces", [Option('e', "exclude-namespaces", Required = false, Separator = ',', HelpText = "Comma-separated list of namespaces to suppress in C# output, or 'none' to include all namespaces",
Default = new [] { Default = new [] {
"System", "System",
"Unity",
"UnityEngine",
"UnityEngineInternal",
"Mono", "Mono",
"Microsoft.Win32", "Microsoft.Win32",
"AOT" "Unity",
"UnityEditor",
"UnityEngine",
"UnityEngineInternal",
"AOT",
"JetBrains.Annotations"
})] })]
public IEnumerable<string> ExcludedNamespaces { get; set; } public IEnumerable<string> ExcludedNamespaces { get; set; }

View File

@@ -44,12 +44,14 @@ namespace Il2CppInspector
var excludedNamespaces = new List<string> { var excludedNamespaces = new List<string> {
"System", "System",
"Unity",
"UnityEngine",
"UnityEngineInternal",
"Mono", "Mono",
"Microsoft.Win32", "Microsoft.Win32",
"AOT" "Unity",
"UnityEditor",
"UnityEngine",
"UnityEngineInternal",
"AOT",
"JetBrains.Annotations"
}; };
// Dump each image in the binary separately // Dump each image in the binary separately

View File

@@ -60,11 +60,13 @@ To exclude types from certain namespaces from being generated in the C# source f
``` ```
System System
Mono Mono
Microsoft.Win32
Unity Unity
UnityEditor
UnityEngine UnityEngine
UnityEngineInternal UnityEngineInternal
Microsoft.Win32
AOT AOT
JetBrains.Annotations
``` ```
Providing an argument to `--exclude-namespaces` will override the default list. To output all namespaces, use `--exclude-namespaces=none`. Providing an argument to `--exclude-namespaces` will override the default list. To output all namespaces, use `--exclude-namespaces=none`.