// // cocos2d::CCRotateTo::startWithTarget from 0x5b6740 to 0x5b6824 (228 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 cocos2d::CCRotateTo::startWithTarget(cocos2d::CCRotateTo *a1, cocos2d::CCNode *a2) { float v4; // r0 float v5; // r1 float v6; // r0 cocos2d::CCRotateTo_vtbl *v7; // s15 int v8; // s15 int (*getRotationY)(void); // r3 int m_nLuaID; // s15 float v11; // r0 float v12; // r1 float v13; // r0 int m_nTag; // s15 float v15; // s15 float v16; // s15 cocos2d::CCActionInterval::startWithTarget(a1, a2); v4 = COERCE_FLOAT(((int (__fastcall *)(cocos2d::CCNode *))a2->getRotationX)(a2)); *(float *)&a1[1].m_uID = v4; if ( v4 <= 0.0 ) v5 = -360.0; else v5 = 360.0; v6 = fmodf(v4, v5); v7 = a1[1].__vftable; *(float *)&a1[1].m_uID = v6; *(float *)&v8 = *(float *)&v7 - *(float *)&a1[1].m_uID; getRotationY = (int (*)(void))a1->m_pTarget->getRotationY; if ( *(float *)&v8 > 180.0 ) *(float *)&v8 = *(float *)&v8 - 360.0; a1[1].m_nLuaID = v8; m_nLuaID = a1[1].m_nLuaID; if ( *(float *)&m_nLuaID < -180.0 ) *(float *)&a1[1].m_nLuaID = *(float *)&m_nLuaID + 360.0; v11 = COERCE_FLOAT(getRotationY()); *(float *)&a1[1].m_uReference = v11; if ( v11 <= 0.0 ) v12 = -360.0; else v12 = 360.0; v13 = fmodf(v11, v12); m_nTag = a1[1].cocos2d::CCActionInterval::cocos2d::CCFiniteTimeAction::cocos2d::CCAction::cocos2d::CCObject::m_nTag; *(float *)&a1[1].m_uReference = v13; v15 = *(float *)&m_nTag - *(float *)&a1[1].m_uReference; if ( v15 > 180.0 ) v15 = v15 - 360.0; *(float *)&a1[1].m_uAutoReleaseCount = v15; v16 = *(float *)&a1[1].m_uAutoReleaseCount; if ( v16 < -180.0 ) *(float *)&a1[1].m_uAutoReleaseCount = v16 + 360.0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source