// // GJRotateCommandLayer::onFollowRotation from 0x925860 to 0x925938 (216 bytes) // // 4 xrefs: // > @ 0x32d18 // > GJRotateCommandLayer::init @ 0x927478 // > GJRotateCommandLayer::init @ 0x92753c // > @ 0x1229868 // // 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; // w2 bool v4; // w3 CCMenuItemToggler *m_followP1Toggler; // x0 EffectGameObject *m_gameObject; // x0 cocos2d::CCArray *m_gameObjects; // x0 unsigned int v8; // w20 __int64 v9; // x1 bool v10; // cf unsigned int v11; // w1 if ( a2->getTag(a2) == 1 ) { v4 = 0; v3 = !a1->m_followP1; } else { v3 = 0; v4 = !a1->m_followP2; } m_followP1Toggler = a1->m_followP1Toggler; a1->m_followP2 = v4; a1->m_followP1 = v3; CCMenuItemToggler::toggle(m_followP1Toggler, v3); 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 { m_gameObjects = a1->m_gameObjects; if ( m_gameObjects ) { v8 = 0; while ( 1 ) { v10 = v8 >= (unsigned int)cocos2d::CCArray::count(m_gameObjects); v11 = v8++; if ( v10 ) break; v9 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v11); m_gameObjects = a1->m_gameObjects; *(_BYTE *)(v9 + 1668) = a1->m_followP1; *(_BYTE *)(v9 + 1669) = a1->m_followP2; } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source