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

Function attachCurrentThread

Il2cppHook/_Ufunc.js:7440–7444  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7438"use strict";
7439Object.defineProperty(exports, "__esModule", { value: true });
7440const attachCurrentThread = () => {
7441 let thread = Il2Cpp.Api._threadCurrent();
7442 if (thread.isNull())
7443 Il2Cpp.Domain.attach();
7444};
7445const detachCurrentThread = () => {
7446 let threadHandle = Il2Cpp.Api._threadCurrent();
7447 if (!threadHandle.isNull())

Callers

nothing calls this directly

Calls 3

_threadCurrentMethod · 0.80
isNullMethod · 0.80
attachMethod · 0.45

Tested by

no test coverage detected