// // LevelSearchLayer::toggleStar from 0x10062b4b0 to 0x10062b52c (124 bytes) // // 1 xrefs: // > LevelSearchLayer::init @ 0x100629a89 // // 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 LevelSearchLayer::toggleStar(LevelSearchLayer *a1, cocos2d::CCObject *a2) { GameLevelManager *v2; // rax bool BoolForKey; // bl cocos2d::CCSprite *m_starsSprite; // rdi cocos2d::CCSprite_vtbl *v5; // rax __int16 *v6; // rsi GameLevelManager *v7; // rax __int16 v8; // [rsp+8h] [rbp-18h] BYREF char v9; // [rsp+Ah] [rbp-16h] _WORD v10[10]; // [rsp+Ch] [rbp-14h] BYREF v2 = GameLevelManager::sharedState(); BoolForKey = GameLevelManager::getBoolForKey(v2, "star_filter"); m_starsSprite = a1->m_starsSprite; if ( BoolForKey ) { memset(v10, 125, 3); v5 = m_starsSprite->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v6 = v10; } else { v9 = -1; v8 = -1; v5 = m_starsSprite->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v6 = &v8; } ((void (__fastcall *)(cocos2d::CCSprite *, __int16 *))v5->setColor)(m_starsSprite, v6); v7 = GameLevelManager::sharedState(); GameLevelManager::setBoolForKey(v7, !BoolForKey, "star_filter"); }
GD Web Decomp Icon

GD Web Decomp

Raw Source