(input)
| 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) |
no test coverage detected