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

Method inputCheck

Il2cppHook/_Ufunc.js:199–216  ·  view source on GitHub ↗
(input)

Source from the content-addressed store, hash-verified

197 LOGO(``);
198 }
199 static inputCheck(input) {
200 let klass;
201 if (input instanceof NativePointer) {
202 klass = HookerBase.checkType(input);
203 }
204 else if (typeof input == "string") {
205 klass = HookerBase.checkType(input.trim());
206 }
207 else if (typeof input == "number") {
208 if (String(input).length > 18 && Process.arch == "arm64")
209 throw ("please use '0x...' instead of number");
210 klass = HookerBase.checkType(ptr(input));
211 }
212 else {
213 throw ("mPtr must be string('0x...') or NativePointer");
214 }
215 return klass;
216 }
217 static map_cache_class = new Map();
218 static findClass(searchClassName, fromAssebly = ["Assembly-CSharp", "MaxSdk.Scripts", "mscorlib"], fromCache = true) {
219 if (searchClassName == undefined)

Callers 2

showMethodsMethod · 0.45
showFieldsMethod · 0.45

Calls 1

checkTypeMethod · 0.45

Tested by

no test coverage detected