Output: Exclude Unity and UnityEngineInternal namespaces by default, include root namespace
This commit is contained in:
@@ -34,10 +34,11 @@ namespace Il2CppInspector
|
||||
var excludedNamespaces = config["exclude-namespaces"]?.Split(',').ToList() ??
|
||||
new List<string> {
|
||||
"System",
|
||||
"Unity",
|
||||
"UnityEngine",
|
||||
"UnityEngineInternal",
|
||||
"Mono",
|
||||
"Microsoft.Win32",
|
||||
""
|
||||
};
|
||||
|
||||
if (excludedNamespaces.Count == 1 && excludedNamespaces[0].ToLower() == "none")
|
||||
|
||||
@@ -44,10 +44,11 @@ namespace Il2CppInspector
|
||||
|
||||
var excludedNamespaces = new List<string> {
|
||||
"System",
|
||||
"Unity",
|
||||
"UnityEngine",
|
||||
"UnityEngineInternal",
|
||||
"Mono",
|
||||
"Microsoft.Win32",
|
||||
""
|
||||
};
|
||||
|
||||
// Dump each image in the binary separately
|
||||
|
||||
@@ -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
|
||||
<the root (empty string) namespace>
|
||||
```
|
||||
|
||||
Providing an argument to `--exclude-namespaces` will override the default list. To output all namespaces, use `--exclude-namespaces=none`.
|
||||
|
||||
Reference in New Issue
Block a user