// // GJGarageLayer::updatePlayerColors from 0x10036ae20 to 0x10036af4d (301 bytes) // // 4 xrefs: // > GJGarageLayer::init @ 0x100369d35 // > GJGarageLayer::playerColorChanged @ 0x10036ed3a // > GJGarageLayer::playerColorChanged @ 0x10036ed63 // > sub_10036ED70 @ 0x10036eda3 // // 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 GJGarageLayer::updatePlayerColors(GJGarageLayer *a1) { __int64 v1; // rax SimplePlayer *m_playerObject; // r14 SimplePlayer *v3; // r14 GameManager *v4; // r15 GameManager *v5; // rax GameManager *v6; // r15 GameManager *v7; // rax GameManager *v8; // rax SimplePlayer *v9; // r14 GameManager *v10; // r15 GameManager *v11; // rax _QWORD v12[4]; // [rsp+0h] [rbp-20h] BYREF cocos2d::ccColor3B v13; // 0:eax.3 v12[0] = v1; m_playerObject = a1->m_playerObject; m_playerObject->m_hasGlowOutline = GameManager::sharedState()->m_playerGlow; v3 = a1->m_playerObject; v4 = GameManager::sharedState(); v5 = GameManager::sharedState(); *(cocos2d::ccColor3B *)v12 = GameManager::colorForIdx(v4, v5->m_playerColor.random - v5->m_playerColor.seed); v6 = GameManager::sharedState(); v7 = GameManager::sharedState(); *(cocos2d::ccColor3B *)((char *)v12 + 4) = GameManager::colorForIdx( v6, v7->m_playerColor2.random - v7->m_playerColor2.seed); ((void (__fastcall *)(cocos2d::CCSprite *, _QWORD *))v3->m_firstLayer->setColor)(v3->m_firstLayer, v12); ((void (__fastcall *)(cocos2d::CCSprite *, char *))v3->m_secondLayer->setColor)(v3->m_secondLayer, (char *)v12 + 4); SimplePlayer::updateColors(v3); v8 = GameManager::sharedState(); v9 = a1->m_playerObject; if ( v8->m_playerGlowColor.random >= v8->m_playerGlowColor.seed ) { v10 = GameManager::sharedState(); v11 = GameManager::sharedState(); v13 = GameManager::colorForIdx(v10, v11->m_playerGlowColor.random - v11->m_playerGlowColor.seed); v9->m_hasCustomGlowColor = 1; v9->m_glowColor = v13; v9 = a1->m_playerObject; } else { v9->m_hasCustomGlowColor = 0; } SimplePlayer::updateColors(v9); }
GD Web Decomp Icon

GD Web Decomp

Raw Source