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

Method showFields

Il2cppHook/_Ufunc.js:186–198  ·  view source on GitHub ↗
(mPtr)

Source from the content-addressed store, hash-verified

184 }
185 }
186 static showFields(mPtr) {
187 let klass = HookerBase.inputCheck(mPtr);
188 if (klass.fields.length == 0) {
189 LOGZ(`\n${klass.toString()}`);
190 LOGE(`\n[!] ${klass.assemblyName}.${klass.namespace}.${klass.name} @ ${klass.handle} has no fields\n`);
191 return;
192 }
193 formart_1.formartClass.printTitile(`Found ${klass.fields.length} Fields ${klass.isEnum ? "(enum) " : ""}in class: ${klass.name} (${klass.handle})`);
194 klass.fields.forEach((field) => {
195 LOGD(`[*] ${field.handle} ${field.type.name} ${field.toString()} [type:${field.type.class.handle}]`);
196 });
197 LOGO(``);
198 }
199 static inputCheck(input) {
200 let klass;
201 if (input instanceof NativePointer) {

Callers

nothing calls this directly

Calls 6

LOGZFunction · 0.70
LOGEFunction · 0.70
LOGDFunction · 0.70
LOGOFunction · 0.70
toStringMethod · 0.65
inputCheckMethod · 0.45

Tested by

no test coverage detected