// // GameLevelManager::hasLikedItem from 0x100558280 to 0x10055835c (220 bytes) // // 5 xrefs: // > GameLevelManager::likeItem @ 0x1005571af // > GameLevelManager::likeItem @ 0x1005571d4 // > GameLevelManager::likeItem @ 0x1005571ef // > GameLevelManager::hasLikedItemFullCheck @ 0x100557aec // > GameLevelManager::hasLikedItemFullCheck @ 0x100557b16 // // 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 __fastcall GameLevelManager::hasLikedItem(GameLevelManager *a1, LikeItemType a2, int a3, bool a4, int a5) { double v5; // xmm0_8 cocos2d::CCDictionary *m_likedLevels; // rbx cocos2d::CCString *v7; // rax const char *CString; // r15 size_t v9; // rax size_t v10; // r14 char *v11; // r12 size_t v12; // r13 __int64 v13; // rbx _QWORD __dst[2]; // [rsp+0h] [rbp-40h] BYREF void *__p; // [rsp+10h] [rbp-30h] m_likedLevels = a1->m_likedLevels; v7 = (cocos2d::CCString *)sub_1007AB580("like_%i_%i_%i_%i", __dst[0]); CString = cocos2d::CCString::getCString(v7); v9 = strlen(CString); if ( v9 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(v5); v10 = v9; if ( v9 >= 0x17 ) { v12 = 26; if ( (v9 | 7) != 0x17 ) v12 = (v9 | 7) + 1; v11 = (char *)operator new(v12); __p = v11; __dst[0] = v12 + 1; __dst[1] = v10; goto LABEL_8; } LOBYTE(__dst[0]) = 2 * v9; v11 = (char *)__dst + 1; if ( v9 ) LABEL_8: memmove(v11, CString, v10); v11[v10] = 0; v13 = cocos2d::CCDictionary::objectForKey_1((__int64)m_likedLevels, (char *)__dst); if ( (__dst[0] & 1) != 0 ) operator delete(__p); return v13 != 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source