From 4c29821ee0390c7c224ae564753dd78827df7a24 Mon Sep 17 00:00:00 2001 From: Katy Coe Date: Tue, 21 Jan 2020 02:42:21 +0100 Subject: [PATCH] Add UnityEditor and JetBrains.Annotations to default ignored namespaces --- Il2CppDumper/Program.cs | 10 ++++++---- Il2CppTests/TestRunner.cs | 10 ++++++---- README.md | 4 +++- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/Il2CppDumper/Program.cs b/Il2CppDumper/Program.cs index a494db3..94514d4 100644 --- a/Il2CppDumper/Program.cs +++ b/Il2CppDumper/Program.cs @@ -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", Default = new [] { "System", - "Unity", - "UnityEngine", - "UnityEngineInternal", "Mono", "Microsoft.Win32", - "AOT" + "Unity", + "UnityEditor", + "UnityEngine", + "UnityEngineInternal", + "AOT", + "JetBrains.Annotations" })] public IEnumerable ExcludedNamespaces { get; set; } diff --git a/Il2CppTests/TestRunner.cs b/Il2CppTests/TestRunner.cs index 0959e58..8c08fe0 100644 --- a/Il2CppTests/TestRunner.cs +++ b/Il2CppTests/TestRunner.cs @@ -44,12 +44,14 @@ namespace Il2CppInspector var excludedNamespaces = new List { "System", - "Unity", - "UnityEngine", - "UnityEngineInternal", "Mono", "Microsoft.Win32", - "AOT" + "Unity", + "UnityEditor", + "UnityEngine", + "UnityEngineInternal", + "AOT", + "JetBrains.Annotations" }; // Dump each image in the binary separately diff --git a/README.md b/README.md index dfe35a9..ac40880 100644 --- a/README.md +++ b/README.md @@ -60,11 +60,13 @@ To exclude types from certain namespaces from being generated in the C# source f ``` System Mono +Microsoft.Win32 Unity +UnityEditor UnityEngine UnityEngineInternal -Microsoft.Win32 AOT +JetBrains.Annotations ``` Providing an argument to `--exclude-namespaces` will override the default list. To output all namespaces, use `--exclude-namespaces=none`.