// // GameLevelManager::onGetGJUserInfoCompleted from 0x10008cc6c to 0x10008cdd8 (364 bytes) // // 1 xrefs: // > GameLevelManager::handleIt @ 0x100089758 // // 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 // __int64 __fastcall GameLevelManager::onGetGJUserInfoCompleted(GameLevelManager *a1, __int64 a2, __int64 a3) { const char *v3; // x20 GameLevelManager *v6; // x0 __int64 SplitIntFromKey; // x20 _BOOL4 v8; // w0 _BOOL4 v9; // w22 cocos2d::CCDictionary *v10; // x22 GJUserScore *v11; // x0 GJUserScore *v12; // x21 intptr_t m_accountID; // x2 GJFriendRequest *v14; // x0 __int64 result; // x0 void *v16[2]; // [xsp+0h] [xbp-50h] BYREF __int64 v17; // [xsp+10h] [xbp-40h] void *__p[2]; // [xsp+18h] [xbp-38h] BYREF char v19; // [xsp+2Fh] [xbp-21h] v3 = (const char *)a3; if ( *(char *)(a3 + 23) < 0 ) v3 = *(const char **)a3; GameLevelManager::removeDLFromActive(a1, v3); SplitIntFromKey = GameLevelManager::getSplitIntFromKey(v6, v3, 1); sub_100009900(__p, "-1"); v8 = sub_1000045BC((_QWORD *)a2, __p); v9 = v8; if ( v19 < 0 ) { operator delete(__p[0]); if ( v9 ) goto LABEL_20; } else if ( v8 ) { LABEL_20: result = (__int64)a1->m_userInfoDelegate; if ( result ) return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)result + 8LL))(result, SplitIntFromKey); return result; } if ( *(char *)(a2 + 23) < 0 ) { sub_1000097D0(v16, *(void **)a2, *(_QWORD *)(a2 + 8)); } else { *(_OWORD *)v16 = *(_OWORD *)a2; v17 = *(_QWORD *)(a2 + 16); } v10 = (cocos2d::CCDictionary *)GameLevelManager::responseToDict(v16, 0); if ( SHIBYTE(v17) < 0 ) operator delete(v16[0]); v11 = GJUserScore::create(v10); if ( !v11 ) goto LABEL_20; v12 = v11; m_accountID = (unsigned int)v11->m_accountID; if ( (int)m_accountID >= 1 ) cocos2d::CCDictionary::setObject(a1->m_storedUserInfo, v11, m_accountID); if ( v12->m_friendReqStatus == 3 ) { v14 = GJFriendRequest::create(v10); v14->m_accountID = SplitIntFromKey; if ( (int)SplitIntFromKey >= 1 ) cocos2d::CCDictionary::setObject(a1->m_friendRequests, v14, (unsigned int)SplitIntFromKey); } result = (__int64)a1->m_userInfoDelegate; if ( result ) return (**(__int64 (__fastcall ***)(__int64, GJUserScore *))result)(result, v12); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source