// // GJRotateCommandLayer::onFollowRotation from 0x4deee2 to 0x4def70 (142 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 GJRotateCommandLayer::onFollowRotation(GJRotateCommandLayer *a1, cocos2d::CCObject *a2) { bool v3; // zf bool m_followP2; // r3 CCMenuItemToggler *m_followP1Toggler; // r0 char m_followP1; // r1 bool v7; // r3 EffectGameObject *m_gameObject; // r5 int v9; // r0 v3 = a2->getTag(a2) == 1; m_followP1Toggler = a1->m_followP1Toggler; if ( v3 ) { m_followP1 = a1->m_followP1; } else { m_followP1 = 0; m_followP2 = a1->m_followP2; } if ( v3 ) { v7 = 0; m_followP1 ^= 1u; } else { v7 = !m_followP2; } a1->m_followP1 = m_followP1; a1->m_followP2 = v7; CCMenuItemToggler::toggle(m_followP1Toggler, m_followP1); CCMenuItemToggler::toggle(a1->m_followP2Toggler, a1->m_followP2); m_gameObject = a1->m_gameObject; if ( m_gameObject ) { m_gameObject->m_targetPlayer1 = a1->m_followP1; m_gameObject->m_targetPlayer2 = a1->m_followP2; } else if ( a1->m_gameObjects ) { while ( (unsigned int)m_gameObject < cocos2d::CCArray::count(a1->m_gameObjects) ) { v9 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, (unsigned int)m_gameObject); m_gameObject = (EffectGameObject *)((char *)m_gameObject + 1); *(_BYTE *)(v9 + 1496) = a1->m_followP1; *(_BYTE *)(v9 + 1497) = a1->m_followP2; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source