// // SetupCameraOffsetTrigger::textChanged from 0x96971c to 0x969a00 (740 bytes) // // 3 xrefs: // > `non-virtual thunk to'SetupCameraOffsetTrigger::textChanged @ 0x969a04 // > @ 0x46980 // > @ 0x11be038 // // 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 SetupCameraOffsetTrigger::textChanged(SetupCameraOffsetTrigger *a1, CCTextInputNode *a2) { int v3; // w0 char *v4; // x22 int v5; // w21 char *v6; // x0 Slider *m_offsetYSlider; // x21 float v8; // s0 float v9; // s1 float v10; // s0 float v11; // s0 char *v12; // x0 const char *v13; // x1 cocos2d::CCString *v14; // x0 Slider *m_moveTimeSlider; // x0 float v16; // s0 char *v17; // x22 int v18; // w21 char *v19; // x0 float v20; // s0 unsigned int *v21; // x22 int v22; // w1 unsigned int *v23; // x2 unsigned int *v24; // x22 int v25; // w1 float v27; // [xsp+30h] [xbp+30h] char *v28; // [xsp+50h] [xbp+50h] BYREF if ( a1->m_disableTextDelegate ) return; v3 = a2->getTag(a2); switch ( v3 ) { case 1: CCTextInputNode::getString(a2, (__int64)&v28); v17 = v28; v18 = atoi(v28); v19 = v17 - 24; if ( v17 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v21 = (unsigned int *)(v17 - 8); do v22 = __ldaxr(v21); while ( __stlxr(v22 - 1, v21) ); } else { v22 = *((_DWORD *)v17 - 2); *((_DWORD *)v17 - 2) = v22 - 1; } if ( v22 <= 0 ) operator delete(v19); } a1->m_offsetY = (int)(float)((float)v18 * 3.0); SetupCameraOffsetTrigger::updateMoveCommandPosY(a1); m_offsetYSlider = a1->m_offsetYSlider; v20 = SetupCameraOffsetTrigger::sliderValueFromPos(a1, a1->m_offsetY); v9 = 1.0; if ( v20 < 1.0 ) { v10 = SetupCameraOffsetTrigger::sliderValueFromPos(a1, a1->m_offsetY); goto LABEL_9; } LABEL_8: v10 = v9; LABEL_9: Slider::setValue(m_offsetYSlider, v10); return; case 3: CCTextInputNode::getString(a2, (__int64)&v28); v11 = atof(v28); v12 = v28 - 24; v13 = (const char *)&qword_124B6B0; if ( v28 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v23 = (unsigned int *)(v28 - 8); do v13 = (const char *)__ldaxr(v23); while ( __stlxr((_DWORD)v13 - 1, v23) ); } else { v13 = (const char *)*((unsigned int *)v28 - 2); *((_DWORD *)v28 - 2) = (_DWORD)v13 - 1; } if ( (int)v13 <= 0 ) { v27 = v11; operator delete(v12); v11 = v27; } } v14 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%.02f", v13, v11); a1->m_moveTime = cocos2d::CCString::floatValue(v14); SetupCameraOffsetTrigger::updateDuration(a1); m_moveTimeSlider = a1->m_moveTimeSlider; v16 = a1->m_moveTime / 10.0; if ( v16 < 1.0 ) { if ( v16 <= 0.0 ) { Slider::setValue(m_moveTimeSlider, 0.0); return; } } else { v16 = 1.0; } Slider::setValue(m_moveTimeSlider, v16); return; case 0: CCTextInputNode::getString(a2, (__int64)&v28); v4 = v28; v5 = atoi(v28); v6 = v4 - 24; if ( v4 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v24 = (unsigned int *)(v4 - 8); do v25 = __ldaxr(v24); while ( __stlxr(v25 - 1, v24) ); } else { v25 = *((_DWORD *)v4 - 2); *((_DWORD *)v4 - 2) = v25 - 1; } if ( v25 <= 0 ) operator delete(v6); } a1->m_offsetX = (int)(float)((float)v5 * 3.0); SetupCameraOffsetTrigger::updateMoveCommandPosX(a1); m_offsetYSlider = a1->m_offsetXSlider; v8 = SetupCameraOffsetTrigger::sliderValueFromPos(a1, a1->m_offsetX); v9 = 1.0; if ( v8 < 1.0 ) { v10 = SetupCameraOffsetTrigger::sliderValueFromPos(a1, a1->m_offsetX); goto LABEL_9; } goto LABEL_8; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source