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

Function InterceptorGetFunctions

Il2cppHook/_Ufunc.js:5774–5806  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5772 InterceptorGetFunctions();
5773 InterceptorSetFunctions();
5774 function InterceptorGetFunctions() {
5775 A(Il2Cpp.Api.PlayerPrefs._GetFloat_2, (args, ctx, pass) => {
5776 pass.set("arg0", readU16(args[0]));
5777 pass.set("arg1", args[1]);
5778 }, (retval, ctx, pass) => {
5779 LOGD("\n[*] '" + retval + "' = GetFloat('" + pass.get("arg0") + "'," + pass.get("arg1") + ")");
5780 if (needLRInfo)
5781 LOGZ("\t\t { LR:" + checkCtx(ctx) + " } | { PC:" + checkCtx(ctx, "PC") + " }");
5782 if (isShowPrintStack)
5783 LOGZ((GetStackTraceN(ctx)));
5784 });
5785 A(Il2Cpp.Api.PlayerPrefs._GetInt_2, (args, ctx, pass) => {
5786 pass.set("arg0", readU16(args[0]));
5787 pass.set("arg1", args[1]);
5788 }, (retval, ctx, pass) => {
5789 LOGD("\n[*] '" + retval.toInt32() + "' = GetInt('" + pass.get("arg0") + "'," + pass.get("arg1") + ")");
5790 if (needLRInfo)
5791 LOGZ("\t\t { LR:" + checkCtx(ctx) + " } | { PC:" + checkCtx(ctx, "PC") + " }");
5792 if (isShowPrintStack)
5793 LOGZ((GetStackTraceN(ctx)));
5794 if (pass.get("arg0").indexOf("SaleBoughted") != -1)
5795 retval.replace(ptr(0x1));
5796 });
5797 A(Il2Cpp.Api.PlayerPrefs._GetString, (args, ctx, pass) => {
5798 pass.set("arg0", readU16(args[0]));
5799 }, (retval, ctx, pass) => {
5800 LOGD("\n[*] '" + readU16(retval) + "' = GetString('" + pass.get("arg0") + "')");
5801 if (needLRInfo)
5802 LOGZ("\t\t { LR:" + checkCtx(ctx) + " } | { PC:" + checkCtx(ctx, "PC") + " }");
5803 if (isShowPrintStack)
5804 LOGZ((GetStackTraceN(ctx)));
5805 });
5806 }
5807 function InterceptorSetFunctions() {
5808 A(Il2Cpp.Api.PlayerPrefs._SetFloat, (args, ctx, pass) => {
5809 pass.set("arg0", readU16(args[0]));

Callers 1

HookPlayerPrefsFunction · 0.70

Calls 7

readU16Function · 0.70
LOGDFunction · 0.70
LOGZFunction · 0.70
checkCtxFunction · 0.70
GetStackTraceNFunction · 0.70
setMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected