// // LevelInfoLayer::updateSideButtons from 0x1402fea00 to 0x1402fecc1 (705 bytes) // // 4 xrefs: // > LevelInfoLayer::init @ 0x1402f8818 // > LevelInfoLayer::rateLevelClosed @ 0x1402fe717 // > LevelInfoLayer::likedItem @ 0x1402fe9be // > @ 0x1406d42d4 // // 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 // // Hidden C++ exception states: #wind=5 void LevelInfoLayer::updateSideButtons(LevelInfoLayer *a1) { int v2; // ebx GameLevelManager *v3; // rdi cocos2d::CCNode *v4; // rbx cocos2d::CCNode_vtbl *v5; // rdi __int64 v6; // rcx cocos2d::CCSpriteFrameCache *v7; // rax struct cocos2d::CCSpriteFrame *v8; // rax int v9; // ebx GameLevelManager *v10; // rcx cocos2d::CCNode *v11; // rbx cocos2d::CCNode_vtbl *v12; // rdi __int64 v13; // rcx cocos2d::CCSpriteFrameCache *v14; // rax struct cocos2d::CCSpriteFrame *v15; // rax __int64 v16; // rax int v17; // ecx int v18; // ebx GameLevelManager *v19; // rcx cocos2d::CCNode *v20; // rbx cocos2d::CCNode_vtbl *v21; // rdi __int64 v22; // rcx cocos2d::CCSpriteFrameCache *v23; // rax struct cocos2d::CCSpriteFrame *v24; // rax void *v25; // [rsp+40h] [rbp+8h] void *v26; // [rsp+40h] [rbp+8h] void *v27; // [rsp+40h] [rbp+8h] void *v28; // [rsp+40h] [rbp+8h] v2 = a1->m_level->m_levelID.random - a1->m_level->m_levelID.seed; v3 = (GameLevelManager *)qword_1406C2EC0; if ( !qword_1406C2EC0 ) { v25 = operator new(0x3D0u); qword_1406C2EC0 = sub_140141280((__int64)v25); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0); v3 = (GameLevelManager *)qword_1406C2EC0; } if ( GameLevelManager::hasLikedAccountItem(v3, (LikeItemType)1, v2, 1, 0) || GameLevelManager::hasLikedAccountItem(v3, (LikeItemType)1, v2, 0, 0) ) { a1->m_likeBtn->setEnabled(a1->m_likeBtn, 0); v4 = a1->m_likeBtn->getNormalImage(a1->m_likeBtn); v5 = v4->__vftable; v7 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v6); v8 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v7, "GJ_like2Btn2_001.png"); ((void (__fastcall *)(cocos2d::CCNode *, struct cocos2d::CCSpriteFrame *))v5[1].setScaleX)(v4, v8); } if ( a1->m_starRateBtn ) { v9 = a1->m_level->m_levelID.random - a1->m_level->m_levelID.seed; v10 = (GameLevelManager *)qword_1406C2EC0; if ( !qword_1406C2EC0 ) { v26 = operator new(0x3D0u); qword_1406C2EC0 = sub_140141280((__int64)v26); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0); v10 = (GameLevelManager *)qword_1406C2EC0; } if ( GameLevelManager::hasRatedLevelStars(v10, v9) ) { a1->m_starRateBtn->setEnabled(a1->m_starRateBtn, 0); v11 = a1->m_starRateBtn->getNormalImage(a1->m_starRateBtn); v12 = v11->__vftable; v14 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v13); v15 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v14, "GJ_starBtn2_001.png"); ((void (__fastcall *)(cocos2d::CCNode *, struct cocos2d::CCSpriteFrame *))v12[1].setScaleX)(v11, v15); } } if ( a1->m_demonRateBtn ) { v16 = qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v27 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v27); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v16 = qword_1406C2ED8; } v17 = *(_DWORD *)(v16 + 1012) - *(_DWORD *)(v16 + 1016); if ( v17 != 1 && v17 != 2 && !*(_BYTE *)(v16 + 1024) ) { v18 = a1->m_level->m_levelID.random - a1->m_level->m_levelID.seed; v19 = (GameLevelManager *)qword_1406C2EC0; if ( !qword_1406C2EC0 ) { v28 = operator new(0x3D0u); qword_1406C2EC0 = sub_140141280((__int64)v28); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0); v19 = (GameLevelManager *)qword_1406C2EC0; } if ( GameLevelManager::hasRatedDemon(v19, v18) ) { a1->m_demonRateBtn->setEnabled(a1->m_demonRateBtn, 0); v20 = a1->m_demonRateBtn->getNormalImage(a1->m_demonRateBtn); v21 = v20->__vftable; v23 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v22); v24 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v23, "GJ_rateDiffBtn2_001.png"); ((void (__fastcall *)(cocos2d::CCNode *, struct cocos2d::CCSpriteFrame *))v21[1].setScaleX)(v20, v24); } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source