// // LevelListLayer::onFavorite from 0x10035db70 to 0x10035dc0a (154 bytes) // // 1 xrefs: // > LevelListLayer::init @ 0x10035d21f // // 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; // rax bool m_favorite; // r14 __int64 v4; // rbx cocos2d::CCSpriteFrameCache *v5; // rax const char *v6; // rsi cocos2d::CCSpriteFrame *v7; // rax GameLevelManager *v8; // rax GJLevelList *v9; // rsi if ( !a1->m_exiting ) { m_levelList = a1->m_levelList; m_favorite = m_levelList->m_favorite; m_levelList->m_favorite = !m_favorite; v4 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->__vftable[13].~CCObject_0)(a2); v5 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v6 = "gj_heartOn_001.png"; if ( m_favorite ) v6 = "gj_heartOff_001.png"; v7 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v5, v6); (*(void (__fastcall **)(__int64, cocos2d::CCSpriteFrame *))(*(_QWORD *)v4 + 1144LL))(v4, v7); v8 = GameLevelManager::sharedState(); v9 = a1->m_levelList; if ( m_favorite ) GameLevelManager::deleteLevelList(v8, v9); else GameLevelManager::saveLevelList(v8, v9); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source