Gets the assemblies that have been loaded into the execution context of the application domain.
()
| 11297 | constructor() { } |
| 11298 | /** Gets the assemblies that have been loaded into the execution context of the application domain. */ |
| 11299 | static get assemblies() { |
| 11300 | const sizePointer = Memory.alloc(Process.pointerSize); |
| 11301 | const startPointer = Il2Cpp.Api._domainGetAssemblies(this, sizePointer); |
| 11302 | const count = sizePointer.readInt(); |
| 11303 | const array = new Array(count); |
| 11304 | for (let i = 0; i < count; i++) { |
| 11305 | array[i] = new Il2Cpp.Assembly(startPointer.add(i * Process.pointerSize).readPointer()); |
| 11306 | } |
| 11307 | if (count == 0) { |
| 11308 | for (const assemblyObject of this.object.method("GetAssemblies").overload().invoke()) { |
| 11309 | const assemblyName = assemblyObject.method("GetSimpleName").invoke().content; |
| 11310 | if (assemblyName != null) { |
| 11311 | array.push(this.assembly(assemblyName)); |
| 11312 | } |
| 11313 | } |
| 11314 | } |
| 11315 | return array; |
| 11316 | } |
| 11317 | /** Gets the application domain handle. */ |
| 11318 | static get handle() { |
| 11319 | return Il2Cpp.Api._domainGet(); |