// // LevelListLayer::likedItem from 0x100360360 to 0x100360423 (195 bytes) // // 2 xrefs: // > sub_100360430 @ 0x10036043c // > @ 0x1009186b0 // // 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 // void __fastcall LevelListLayer::likedItem(LevelListLayer *a1, LikeItemType a2, int a3, bool a4) { GameLevelManager *v5; // rax int v6; // r8d __int64 v7; // r15 cocos2d::CCSpriteFrameCache *v8; // rax cocos2d::CCSpriteFrame *v9; // rax if ( a1->m_levelList->m_listID == a3 ) { if ( a1->m_likeButton ) { v5 = GameLevelManager::sharedState(); if ( GameLevelManager::hasLikedItemFullCheck(v5, (LikeItemType)4, a1->m_levelList->m_listID, 0, v6) ) { ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_likeButton->setEnabled)(a1->m_likeButton, 0); v7 = ((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_likeButton->getNormalImage)(a1->m_likeButton); v8 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v9 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v8, "GJ_like2Btn2_001.png"); (*(void (__fastcall **)(__int64, cocos2d::CCSpriteFrame *))(*(_QWORD *)v7 + 1144LL))(v7, v9); } } a1->m_levelList->m_likes += a4 ? 1 : -1; LevelListLayer::updateStatsArt(a1); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source