// // LevelListLayer::onFavorite from 0x58faa8 to 0x58fb12 (106 bytes) // // 0 xrefs: // // 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 LevelListLayer::onFavorite(LevelListLayer *a1, cocos2d::CCObject *a2) { GJLevelList *m_levelList; // r3 int v4; // r4 int v5; // r6 void (__fastcall *v6)(int, cocos2d::CCSpriteFrame *); // r7 cocos2d::CCSpriteFrameCache *v7; // r0 const char *v8; // r1 cocos2d::CCSpriteFrame *v9; // r0 GameLevelManager *v10; // r0 GJLevelList *v11; // r1 if ( !a1->m_exiting ) { m_levelList = a1->m_levelList; v4 = !m_levelList->m_favorite; m_levelList->m_favorite = v4; v5 = ((int (__fastcall *)(cocos2d::CCObject *))a2->__vftable[13].~CCObject_0)(a2); v6 = *(void (__fastcall **)(int, cocos2d::CCSpriteFrame *))(*(_DWORD *)v5 + 572); v7 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); if ( v4 ) v8 = "gj_heartOn_001.png"; else v8 = "gj_heartOff_001.png"; v9 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v7, v8); v6(v5, v9); v10 = GameLevelManager::sharedState(); v11 = a1->m_levelList; if ( v4 ) GameLevelManager::saveLevelList(v10, v11); else GameLevelManager::deleteLevelList(v10, v11); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source