// // SetupMGTrigger::textChanged from 0xa2130c to 0xa21530 (548 bytes) // // 3 xrefs: // > `non-virtual thunk to'SetupMGTrigger::textChanged @ 0xa21534 // > @ 0x2e680 // > @ 0x11d7318 // // 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 SetupMGTrigger::textChanged(SetupMGTrigger *a1, CCTextInputNode *a2) { int v3; // w0 float v4; // s0 char *v5; // x0 const char *v6; // x1 cocos2d::CCString *v7; // x0 Slider *m_moveTimeSlider; // x0 float v9; // s0 char *v10; // x22 int v11; // w21 char *v12; // x0 Slider *m_offsetYSlider; // x21 float v14; // s0 unsigned int *v15; // x22 int v16; // w1 unsigned int *v17; // x2 float v19; // [xsp+30h] [xbp+30h] char *v20; // [xsp+50h] [xbp+50h] BYREF if ( !a1->m_disableTextDelegate ) { v3 = a2->getTag(a2); if ( v3 == 1 ) { CCTextInputNode::getString(a2, (__int64)&v20); v10 = v20; v11 = atoi(v20); v12 = v10 - 24; if ( v10 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v15 = (unsigned int *)(v10 - 8); do v16 = __ldaxr(v15); while ( __stlxr(v16 - 1, v15) ); } else { v16 = *((_DWORD *)v10 - 2); *((_DWORD *)v10 - 2) = v16 - 1; } if ( v16 <= 0 ) operator delete(v12); } a1->m_offsetY = (int)(float)((float)v11 * 3.0); SetupMGTrigger::updateMoveCommandPosY(a1); m_offsetYSlider = a1->m_offsetYSlider; if ( SetupMGTrigger::sliderValueFromPos(a1, a1->m_offsetY) < 1.0 ) v14 = SetupMGTrigger::sliderValueFromPos(a1, a1->m_offsetY); else v14 = 1.0; Slider::setValue(m_offsetYSlider, v14); } else if ( v3 == 3 ) { CCTextInputNode::getString(a2, (__int64)&v20); v4 = atof(v20); v5 = v20 - 24; v6 = (const char *)&qword_124B6B0; if ( v20 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v17 = (unsigned int *)(v20 - 8); do v6 = (const char *)__ldaxr(v17); while ( __stlxr((_DWORD)v6 - 1, v17) ); } else { v6 = (const char *)*((unsigned int *)v20 - 2); *((_DWORD *)v20 - 2) = (_DWORD)v6 - 1; } if ( (int)v6 <= 0 ) { v19 = v4; operator delete(v5); v4 = v19; } } v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%.02f", v6, v4); a1->m_moveTime = cocos2d::CCString::floatValue(v7); SetupMGTrigger::updateDuration(a1); m_moveTimeSlider = a1->m_moveTimeSlider; v9 = a1->m_moveTime / 10.0; if ( v9 < 1.0 ) { if ( v9 <= 0.0 ) { Slider::setValue(m_moveTimeSlider, 0.0); return; } } else { v9 = 1.0; } Slider::setValue(m_moveTimeSlider, v9); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source