// // GameLevelManager::hasLikedAccountItem from 0x6fbe6c to 0x6fbf70 (260 bytes) // // 3 xrefs: // > GameLevelManager::hasLikedItemFullCheck @ 0x6fbfe4 // > GameLevelManager::hasLikedItemFullCheck @ 0x6fc010 // > @ 0x6e310 // // 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 // bool GameLevelManager::hasLikedAccountItem(GameLevelManager *a1, LikeItemType a2, int a3, bool a4, int a5) { cocos2d::CCDictionary *m_likedLevels; // x21 char *LikeAccountItemKey; // x0 bool v7; // zf __int64 *v8; // x0 bool v9; // w20 unsigned int *v11; // x2 int v12; // w1 std::string v13; // [xsp+40h] [xbp+40h] BYREF m_likedLevels = a1->m_likedLevels; LikeAccountItemKey = (char *)GameLevelManager::getLikeAccountItemKey(a1, a2, a3, a4, a5); sub_D153B8((int)&v13, LikeAccountItemKey); v7 = cocos2d::CCDictionary::objectForKey(m_likedLevels, &v13) == 0; v8 = (__int64 *)((char *)v13.m_data.m_data - 24); v9 = !v7; if ( v8 != &qword_124B6B0 ) { if ( &pthread_create ) { v11 = (unsigned int *)((char *)v13.m_data.m_data - 8); do v12 = __ldaxr(v11); while ( __stlxr(v12 - 1, v11) ); } else { v12 = *((_DWORD *)v13.m_data.m_data - 2); *((_DWORD *)v13.m_data.m_data - 2) = v12 - 1; } if ( v12 <= 0 ) operator delete(v8); } return v9; }
GD Web Decomp Icon

GD Web Decomp

Raw Source