//
// localStorageSetItem from 0x5ad674 to 0x5ad6e2 (110 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall localStorageSetItem(const char *a1, const char *a2)
{
int result; // r0
jstring v5; // r6
_JNIEnv *v6[3]; // [sp+8h] [bp-10h] BYREF
result = cocos2d::JniHelper::getStaticMethodInfo(
v6,
"org/cocos2dx/lib/Cocos2dxLocalStorage",
"setItem",
"(Ljava/lang/String;Ljava/lang/String;)V");
if ( result )
{
v5 = _JNIEnv::NewStringUTF(v6[0], a1);
_JNIEnv::NewStringUTF(v6[0], a2);
_JNIEnv::CallStaticVoidMethod((int)v6[0], (int)v6[1], (int)v6[2], (int)v5);
_JNIEnv::DeleteLocalRef((int)v6[0]);
_JNIEnv::DeleteLocalRef((int)v6[0]);
return _JNIEnv::DeleteLocalRef((int)v6[0]);
}
return result;
}