// // LevelInfoLayer::onFavorite from 0x6d57e8 to 0x6d5878 (144 bytes) // // 3 xrefs: // > @ 0x84f90 // > LevelInfoLayer::init @ 0x6dc234 // > @ 0x122c7b8 // // 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; // x2 void (__fastcall *v4)(cocos2d::CCObject *__hidden); // x1 int v5; // w19 __int64 v6; // x20 void (__fastcall *v7)(__int64, cocos2d::CCSpriteFrame *); // x21 cocos2d::CCSpriteFrameCache *v8; // x0 const char *v9; // x1 cocos2d::CCSpriteFrame *v10; // x0 if ( !a1->m_isBusy ) { m_level = a1->m_level; v4 = a2->__vftable[13].~CCObject_0; v5 = !m_level->m_levelFavorited; m_level->m_levelFavorited ^= 1u; v6 = ((__int64 (__fastcall *)(cocos2d::CCObject *))v4)(a2); v7 = *(void (__fastcall **)(__int64, cocos2d::CCSpriteFrame *))(*(_QWORD *)v6 + 1144LL); v8 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); if ( v5 ) v9 = "gj_heartOn_001.png"; else v9 = "gj_heartOff_001.png"; v10 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v8, v9); v7(v6, v10); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source