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

Function printModule

Il2cppHook/_Ufunc.js:1360–1367  ·  view source on GitHub ↗
(md, needIndex = false)

Source from the content-addressed store, hash-verified

1358 }
1359};
1360function printModule(md, needIndex = false) {
1361 needIndex == true ? LOGD(`\n[${++index}]\t${md.name}`) : LOGD(`\n[*]\t${md.name}`);
1362 let fileLen = getFileLenth(md.path);
1363 let extendFileLen = fileLen == 0 ? "" : `| FILE: ${ptr(fileLen)} ( ${fileLen} B )`;
1364 let size = Math.round(md.size / 1024 / 1024 * 100) / 100;
1365 LOGZ(`\t${md.base} - ${(md.base.add(md.size))} | MEM: ${ptr(md.size)} ( ${md.size} B = ${md.size / 1024} KB ≈ ${size} MB ) ${extendFileLen}`);
1366 LOGZ(`\t${md.path}\n`);
1367}
1368globalThis.findExport = (exportName, moduleName, callback) => {
1369 if (callback == undefined)
1370 callback = showDetails;

Callers 1

_Ufunc.jsFile · 0.70

Calls 3

LOGDFunction · 0.70
getFileLenthFunction · 0.70
LOGZFunction · 0.70

Tested by

no test coverage detected