// // LevelInfoLayer::onFavorite from 0x1402f9c60 to 0x1402f9cfd (157 bytes) // // 4 xrefs: // > LevelInfoLayer::init @ 0x1402f90ab // > @ 0x1406908bc // > @ 0x1406908cc // > @ 0x1406d410c // // 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 LevelInfoLayer::onFavorite(LevelInfoLayer *a1, cocos2d::CCObject *a2) { GJGameLevel *m_level; // rcx bool m_levelFavorited; // bp const char *v4; // rbx __int64 v5; // rcx __int64 *v6; // rdi __int64 v7; // rsi cocos2d::CCSpriteFrameCache *v8; // rax struct cocos2d::CCSpriteFrame *v9; // rax if ( !a1->m_isBusy ) { m_level = a1->m_level; m_levelFavorited = m_level->m_levelFavorited; m_level->m_levelFavorited = !m_levelFavorited; v4 = "gj_heartOff_001.png"; v6 = (__int64 *)((__int64 (__fastcall *)(cocos2d::CCObject *))a2->__vftable[13].copyWithZone)(a2); v7 = *v6; if ( !m_levelFavorited ) v4 = "gj_heartOn_001.png"; v8 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v5); v9 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v8, v4); (*(void (__fastcall **)(__int64 *, struct cocos2d::CCSpriteFrame *))(v7 + 992))(v6, v9); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source