// // SimplePlayer::updateColors from 0x100306054 to 0x100306280 (556 bytes) // // 16 xrefs: // > CommentCell::loadFromComment @ 0x100106050 // > GJScoreCell::loadFromScore @ 0x10010796c // > GJLevelScoreCell::loadFromScore @ 0x100108dac // > GJUserCell::loadFromScore @ 0x100109a2c // > GJRequestCell::loadFromScore @ 0x10010a244 // > CharacterColorPage::updateIconColors @ 0x1001299ac // > ProfilePage::loadPageFromUserInfo @ 0x1001986b0 // > GJBaseGameLayer::playExitDualEffect @ 0x1001ea0fc // > GJGarageLayer::updatePlayerColors @ 0x10030341c // > GJGarageLayer::updatePlayerColors @ 0x100303480 // > GJGarageLayer::onSelect @ 0x100305c90 // > SimplePlayer::setColor @ 0x1003074f0 // > sub_1003074F4 @ 0x100307520 // > SimplePlayer::setSecondColor @ 0x100307550 // > GJItemIcon::init @ 0x100307cbc // > GJItemIcon::darkenStoreItem @ 0x100308084 // // 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 SimplePlayer::updateColors(SimplePlayer *a1) { unsigned __int8 *v2; // x0 int v3; // w21 GLubyte v4; // w23 GLubyte v5; // w24 GLubyte *v6; // x0 int v7; // w22 GLubyte v8; // w25 GLubyte v9; // w8 GLubyte v10; // w26 GLubyte v11; // w9 bool m_hasGlowOutline; // w8 GJRobotSprite *m_robotSprite; // x0 GJSpiderSprite *m_spiderSprite; // x0 GJRobotSprite *v15; // x0 GJSpiderSprite *v16; // x0 GJSpiderSprite *v17; // x0 cocos2d::ccColor3B m_glowColor; // [xsp+Ch] [xbp-54h] BYREF v2 = (unsigned __int8 *)((__int64 (__fastcall *)(cocos2d::CCSprite *))a1->m_firstLayer->getColor)(a1->m_firstLayer); v3 = *v2; v4 = v2[1]; v5 = v2[2]; v6 = (GLubyte *)((__int64 (__fastcall *)(cocos2d::CCSprite *))a1->m_secondLayer->getColor)(a1->m_secondLayer); v7 = *v6; v8 = v6[1]; v9 = v8; v10 = v6[2]; v11 = v10; if ( (unsigned __int8)(v3 | v4) | v5 && (unsigned __int8)(v7 | v8) | v10 || ((unsigned __int8)(v7 | v8) | v10) != 0 && ((unsigned __int8)(v3 | v4) | v5) == 0 ) { m_glowColor.r = *v6; } else { if ( ((unsigned __int8)(v3 | v4) | v5) == 0 || ((unsigned __int8)(v7 | v8) | v10) != 0 ) { m_glowColor.b = -1; *(_WORD *)&m_glowColor.r = -1; goto LABEL_8; } v9 = v4; m_glowColor.r = v3; v11 = v5; } m_glowColor.g = v9; m_glowColor.b = v11; LABEL_8: m_glowColor = GameToolbox::strongColor((cocos2d::ccColor3B)(*(unsigned __int16 *)&m_glowColor.r | (m_glowColor.b << 16))); if ( a1->m_hasCustomGlowColor ) m_glowColor = a1->m_glowColor; ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::ccColor3B *))a1->m_outlineSprite->setColor)( a1->m_outlineSprite, &m_glowColor); if ( (unsigned __int8)(v3 | v4) | v5 ) m_hasGlowOutline = a1->m_hasGlowOutline; else m_hasGlowOutline = 1; ((void (__fastcall *)(cocos2d::CCSprite *, bool))a1->m_outlineSprite->setVisible)( a1->m_outlineSprite, m_hasGlowOutline); m_robotSprite = a1->m_robotSprite; if ( m_robotSprite ) { GJRobotSprite::updateColor01(m_robotSprite, (cocos2d::ccColor3B)(v3 | (v4 << 8) | (v5 << 16))); GJRobotSprite::updateColor02(a1->m_robotSprite, (cocos2d::ccColor3B)(v7 | (v8 << 8) | (v10 << 16))); GJRobotSprite::updateGlowColor( a1->m_robotSprite, (cocos2d::ccColor3B)(*(unsigned __int16 *)&m_glowColor.r | (m_glowColor.b << 16)), 1); } m_spiderSprite = a1->m_spiderSprite; if ( m_spiderSprite ) { GJRobotSprite::updateColor01(m_spiderSprite, (cocos2d::ccColor3B)(v3 | (v4 << 8) | (v5 << 16))); GJRobotSprite::updateColor02(a1->m_spiderSprite, (cocos2d::ccColor3B)(v7 | (v8 << 8) | (v10 << 16))); GJRobotSprite::updateGlowColor( a1->m_spiderSprite, (cocos2d::ccColor3B)(*(unsigned __int16 *)&m_glowColor.r | (m_glowColor.b << 16)), 1); } if ( !((unsigned __int8)(v3 | v4) | v5) ) { v15 = a1->m_robotSprite; LABEL_20: if ( v15 ) GJRobotSprite::showGlow(v15); v16 = a1->m_spiderSprite; if ( v16 ) GJRobotSprite::showGlow(v16); return; } v15 = a1->m_robotSprite; if ( a1->m_hasGlowOutline ) goto LABEL_20; if ( v15 ) GJRobotSprite::hideGlow(v15); v17 = a1->m_spiderSprite; if ( v17 ) GJRobotSprite::hideGlow(v17); }
GD Web Decomp Icon

GD Web Decomp

Raw Source