// // SetupCameraRotatePopup::textChanged from 0x1004be670 to 0x1004be8b5 (581 bytes) // // 2 xrefs: // > sub_1004BE8C0 @ 0x1004be8cc // > @ 0x10094d3a8 // // 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 SetupCameraRotatePopup::textChanged(SetupCameraRotatePopup *a1, CCTextInputNode *a2) { double v2; // xmm0_8 int v3; // eax char *v4; // r14 cocos2d::CCString *v5; // rax float v6; // xmm0_4 EffectGameObject *v7; // rax char *v8; // r14 cocos2d::CCString *v9; // rax float v10; // xmm0_4 EffectGameObject *m_gameObject; // rax unsigned int v12; // r14d Slider **p_m_moveTimeSlider; // rbx __m128 m_moveTime_low; // xmm1 unsigned int v15; // r14d __m128 v16; // xmm0 float v17; // xmm0_4 float v18; // xmm3_4 _QWORD v19[2]; // [rsp-38h] [rbp-38h] BYREF char *v20; // [rsp-28h] [rbp-28h] double v21; // [rsp-20h] [rbp-20h] if ( !a1->m_disableTextDelegate ) { v3 = ((__int64 (__fastcall *)(CCTextInputNode *))a2->getTag)(a2); if ( v3 == 2 ) { CCTextInputNode::getString(v19, (__int64)a2, v2); if ( (v19[0] & 1) != 0 ) { v8 = v20; v21 = atof(v20); operator delete(v8); } else { atof((const char *)v19 + 1); } v9 = (cocos2d::CCString *)sub_1007AB580("%.02f", v19[0]); v10 = cocos2d::CCString::floatValue(v9); a1->m_moveTime = v10; m_gameObject = a1->m_gameObject; if ( m_gameObject ) { m_gameObject->m_duration = v10; } else if ( (unsigned int)sub_100720070(a1->m_gameObjects) ) { v15 = 0; do *(float *)(sub_1007200C0(a1->m_gameObjects, v15++) + 1452) = a1->m_moveTime; while ( v15 < (unsigned int)sub_100720070(a1->m_gameObjects) ); } m_moveTime_low = (__m128)LODWORD(a1->m_moveTime); p_m_moveTimeSlider = &a1->m_moveTimeSlider; m_moveTime_low.f32[0] = m_moveTime_low.f32[0] / 10.0; } else { if ( v3 ) return; CCTextInputNode::getString(v19, (__int64)a2, v2); if ( (v19[0] & 1) != 0 ) { v4 = v20; v21 = atof(v20); operator delete(v4); } else { atof((const char *)v19 + 1); } v5 = (cocos2d::CCString *)sub_1007AB580("%.02f", v19[0]); v6 = cocos2d::CCString::floatValue(v5); a1->m_degrees = v6; v7 = a1->m_gameObject; if ( v7 ) { v7->m_rotationDegrees = v6; } else if ( (unsigned int)sub_100720070(a1->m_gameObjects) ) { v12 = 0; do *(float *)(sub_1007200C0(a1->m_gameObjects, v12++) + 1544) = a1->m_degrees; while ( v12 < (unsigned int)sub_100720070(a1->m_gameObjects) ); } m_moveTime_low = (__m128)LODWORD(a1->m_degrees); p_m_moveTimeSlider = &a1->m_degreesSlider; m_moveTime_low.f32[0] = (float)(m_moveTime_low.f32[0] / 720.0) + 0.5; } v16 = _mm_cmpge_ss(m_moveTime_low, (__m128)0x3F800000u); LODWORD(v17) = v16.i32[0] & 0x3F800000 | _mm_andnot_ps(v16, _mm_and_ps(_mm_cmplt_ss((__m128)0LL, m_moveTime_low), (__m128)0x3F800000u)).u32[0]; v18 = m_moveTime_low.f32[0]; if ( m_moveTime_low.f32[0] <= 0.0 ) v18 = v17; if ( m_moveTime_low.f32[0] < 1.0 ) v17 = v18; Slider::setValue(*p_m_moveTimeSlider, v17); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source