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

Method resolve

Il2cppHook/_Ufunc.js:1758–1764  ·  view source on GitHub ↗
(index)

Source from the content-addressed store, hash-verified

1756 return retStr;
1757 }
1758 resolve(index) {
1759 if (index > this.method.parameterCount)
1760 throw new Error("index out of parameterCount range");
1761 let args = index == -1 ? this.retval : this.args[index];
1762 let type = index == -1 ? this.method.returnType : this.method.parameters[index].type;
1763 return ValueResolve.fakeValue(args, type, this.method);
1764 }
1765 static fakeValue = (insPtr, type, method) => {
1766 if (typeof insPtr == "number")
1767 insPtr = ptr(insPtr);

Callers 1

attachMethodInfoMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected