// // LevelListLayer::onFavorite from 0x100244d68 to 0x100244e18 (176 bytes) // // 1 xrefs: // > LevelListLayer::init @ 0x100244578 // // 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::onFavorite(LevelListLayer *a1, cocos2d::CCObject *a2) { GJLevelList *m_levelList; // x8 _BOOL4 m_favorite; // w21 __int64 v5; // x20 cocos2d::CCSpriteFrameCache *v6; // x0 const char *v7; // x1 cocos2d::CCSpriteFrame *v8; // x0 GameLevelManager *v9; // x0 GJLevelList *v10; // x1 if ( !a1->m_exiting ) { m_levelList = a1->m_levelList; m_favorite = m_levelList->m_favorite; m_levelList->m_favorite = !m_favorite; v5 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->__vftable[13].~CCObject_0)(a2); v6 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); if ( m_favorite ) v7 = "gj_heartOff_001.png"; else v7 = "gj_heartOn_001.png"; v8 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v6, v7); (*(void (__fastcall **)(__int64, cocos2d::CCSpriteFrame *))(*(_QWORD *)v5 + 1144LL))(v5, v8); v9 = GameLevelManager::sharedState(); v10 = a1->m_levelList; if ( m_favorite ) GameLevelManager::deleteLevelList(v9, v10); else GameLevelManager::saveLevelList(v9, v10); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source