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

Function LOG

Il2cppHook/_Ufunc.js:8807–8822  ·  view source on GitHub ↗
(str, type = enum_1.LogColor.WHITE)

Source from the content-addressed store, hash-verified

8805const setNeedLog = (flag) => (0, globle_1.SET_G)(enum_1.GKEY.LogFlag, flag);
8806const getNeedLog = () => (0, globle_1.GET_GT)(enum_1.GKEY.LogFlag);
8807const LOG = (str, type = enum_1.LogColor.WHITE) => {
8808 switch (type) {
8809 case enum_1.LogColor.WHITE:
8810 console.log(str);
8811 break;
8812 case enum_1.LogColor.RED:
8813 console.error(str);
8814 break;
8815 case enum_1.LogColor.YELLOW:
8816 console.warn(str);
8817 break;
8818 default:
8819 console.log("\x1b[" + type + "m" + str + "\x1b[0m");
8820 break;
8821 }
8822};
8823exports.LOG = LOG;
8824const LOGJSON = (obj, type = enum_1.LogColor.C36, lines = 1) => (0, exports.LOG)(JSON.stringify(obj, null, lines), type);
8825exports.LOGJSON = LOGJSON;

Callers 15

showClassesMethod · 0.70
findMethodSyncMethod · 0.70
listFieldsFromClsMethod · 0.70
BreakerClass · 0.70
_Ufunc.jsFile · 0.70
findFunction · 0.70
showAllClassesMethodsFunction · 0.70
showAllClassesFunction · 0.70
showSpecificClassMethodsFunction · 0.70
HookMotionEventFunction · 0.70
callFunctionFunction · 0.70
SeeTypeToStringFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected