MCPcopy Create free account
hub / github.com/axhlzy/Il2CppHookScripts / assemblies

Method assemblies

Il2cppHook/_Ufunc.js:11299–11316  ·  view source on GitHub ↗

Gets the assemblies that have been loaded into the execution context of the application domain.

()

Source from the content-addressed store, hash-verified

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();

Callers

nothing calls this directly

Calls 6

assemblyMethod · 0.95
_domainGetAssembliesMethod · 0.80
overloadMethod · 0.80
allocMethod · 0.45
invokeMethod · 0.45
methodMethod · 0.45

Tested by

no test coverage detected