From a026acf52800ce76bbb1ec1ff0a669a5178bfeb5 Mon Sep 17 00:00:00 2001 From: Katy Coe Date: Mon, 11 Nov 2019 02:05:05 +0100 Subject: [PATCH] Output: Exclude Unity and UnityEngineInternal namespaces by default, include root namespace --- Il2CppDumper/Program.cs | 3 ++- Il2CppTests/TestRunner.cs | 3 ++- README.md | 5 +++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Il2CppDumper/Program.cs b/Il2CppDumper/Program.cs index 5076f47..8e16cde 100644 --- a/Il2CppDumper/Program.cs +++ b/Il2CppDumper/Program.cs @@ -34,10 +34,11 @@ namespace Il2CppInspector var excludedNamespaces = config["exclude-namespaces"]?.Split(',').ToList() ?? new List { "System", + "Unity", "UnityEngine", + "UnityEngineInternal", "Mono", "Microsoft.Win32", - "" }; if (excludedNamespaces.Count == 1 && excludedNamespaces[0].ToLower() == "none") diff --git a/Il2CppTests/TestRunner.cs b/Il2CppTests/TestRunner.cs index 37400c1..499a8fb 100644 --- a/Il2CppTests/TestRunner.cs +++ b/Il2CppTests/TestRunner.cs @@ -44,10 +44,11 @@ namespace Il2CppInspector var excludedNamespaces = new List { "System", + "Unity", "UnityEngine", + "UnityEngineInternal", "Mono", "Microsoft.Win32", - "" }; // Dump each image in the binary separately diff --git a/README.md b/README.md index cd76052..6aed6cc 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Extract types, methods, properties and fields from Unity IL2CPP binaries. * Supports ELF (Android .so), PE (Windows .exe), Mach-O (Apple iOS/Mac) and Universal Binary (Fat Mach-O) file formats * 32-bit and 64-bit support for all file formats * Supports ARMv7, Thumb-2, ARMv8 (A64), x86 and x64 architectures regardless of file format -* Supports metadata versions 16, 21, 22, 23, 24, 24.1 (Unity 2018.3+) and 24.2 (Unity 2019+) (other versions may or may not work) +* Supports metadata versions 16 (Unity 5.3+), 21, 22, 23, 24, 24.1 (Unity 2018.3+) and 24.2 (Unity 2019+) (not compatible with version 15 (Unity 5.2) or earlier; other versions may or may not work) * Support for classes, methods, constructors, fields, properties, enumerations, events, interfaces, structs, pointers, references, attributes, nested types, generic types, generic methods, default field values and default method parameter values * C# syntactic sugar for CTS value types, compiler-generated types, delegates, operator overloading, indexers, user-defined conversion operators, nullable types, unsafe contexts, fixed-size arrays, variable length argument lists and method hiding * Static symbol table scanning for ELF and Mach-O binaries if present @@ -46,9 +46,10 @@ To exclude types from certain namespaces from being generated in the C# source f ``` System Mono +Unity UnityEngine +UnityEngineInternal Microsoft.Win32 - ``` Providing an argument to `--exclude-namespaces` will override the default list. To output all namespaces, use `--exclude-namespaces=none`.