// // SetupCameraModePopup::sliderChanged from 0x1004a98e0 to 0x1004a9aa6 (454 bytes) // // 2 xrefs: // > SetupCameraModePopup::init @ 0x1004a93ae // > SetupCameraModePopup::init @ 0x1004a955c // // 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 SetupCameraModePopup::sliderChanged(SetupCameraModePopup *a1, cocos2d::CCObject *a2) { __int128 v2; // xmm0 EffectGameObject *v3; // rax __m128 v4; // xmm1 __m128 v5; // xmm0 int v6; // eax EffectGameObject *m_gameObject; // rcx unsigned int v8; // r14d cocos2d::CCLabelBMFont *m_cameraEasingLabel; // r14 cocos2d::CCString *v10; // rax unsigned int v11; // r14d const char *CString; // rax float v13; // [rsp+0h] [rbp-20h] *(float *)&v2 = SliderThumb::getValue((SliderThumb *)a2); v13 = *(float *)&v2; if ( !((unsigned int (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2) ) { v4 = (__m128)v2; v4.f32[0] = *(float *)&v2 * 39.0; v5 = _mm_or_ps(_mm_and_ps((__m128)xmmword_1008150B0, v4), (__m128)xmmword_1008150C0); v5.f32[0] = v5.f32[0] + (float)(v13 * 39.0); v6 = (int)(float)(_mm_round_ss(v5, v5, 11).f32[0] + 1.0); a1->m_cameraEasing = v6; m_gameObject = a1->m_gameObject; if ( m_gameObject ) { m_gameObject->m_cameraEasingValue = (float)v6; } else if ( (unsigned int)sub_100720070(a1->m_gameObjects) ) { v8 = 0; do *(float *)(sub_1007200C0(a1->m_gameObjects, v8++) + 1752) = (float)a1->m_cameraEasing; while ( v8 < (unsigned int)sub_100720070(a1->m_gameObjects) ); } m_cameraEasingLabel = a1->m_cameraEasingLabel; v10 = (cocos2d::CCString *)sub_1007AB580("Easing: %i", SLOBYTE(v13)); goto LABEL_16; } if ( ((unsigned int (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2) == 1 ) { LODWORD(a1->m_cameraPadding) = v2; v3 = a1->m_gameObject; if ( v3 ) { LODWORD(v3->m_cameraPaddingValue) = v2; } else if ( (unsigned int)sub_100720070(a1->m_gameObjects) ) { v11 = 0; do *(float *)(sub_1007200C0(a1->m_gameObjects, v11++) + 1756) = a1->m_cameraPadding; while ( v11 < (unsigned int)sub_100720070(a1->m_gameObjects) ); } m_cameraEasingLabel = a1->m_cameraPaddingLabel; v10 = (cocos2d::CCString *)sub_1007AB580("Padding: %.02f", v2); LABEL_16: CString = cocos2d::CCString::getCString(v10); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))m_cameraEasingLabel->setString)( m_cameraEasingLabel, CString); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source