// // GJFollowCommandLayer::textChanged from 0x922060 to 0x922438 (984 bytes) // // 3 xrefs: // > `non-virtual thunk to'GJFollowCommandLayer::textChanged @ 0x92243c // > @ 0xa6740 // > @ 0x11ad898 // // 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 GJFollowCommandLayer::textChanged(GJFollowCommandLayer *a1, CCTextInputNode *a2) { float v3; // s0 char *v4; // x0 const char *v5; // x1 cocos2d::CCString *v6; // x0 Slider *m_xModSlider; // x0 float v8; // s1 float v9; // s0 bool v10; // nf char *v11; // x22 int v12; // w21 char *v13; // x0 float v14; // s0 char *v15; // x0 const char *v16; // x1 cocos2d::CCString *v17; // x0 float m_xMod; // s2 float v19; // s0 char *v20; // x0 const char *v21; // x1 cocos2d::CCString *v22; // x0 char *v23; // x22 int v24; // w21 char *v25; // x0 unsigned int *v26; // x2 unsigned int *v27; // x22 int v28; // w1 unsigned int *v29; // x2 unsigned int *v30; // x2 unsigned int *v31; // x22 int v32; // w1 float v34; // [xsp+30h] [xbp+30h] float v35; // [xsp+30h] [xbp+30h] float v36; // [xsp+30h] [xbp+30h] char *v37; // [xsp+50h] [xbp+50h] BYREF if ( !a1->m_disableTextDelegate ) { switch ( a2->getTag(a2) ) { case 0: CCTextInputNode::getString(a2, (__int64)&v37); v19 = atof(v37); v20 = v37 - 24; v21 = (const char *)&qword_124B6B0; if ( v37 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v30 = (unsigned int *)(v37 - 8); do v21 = (const char *)__ldaxr(v30); while ( __stlxr((_DWORD)v21 - 1, v30) ); } else { v21 = (const char *)*((unsigned int *)v37 - 2); *((_DWORD *)v37 - 2) = (_DWORD)v21 - 1; } if ( (int)v21 <= 0 ) { v36 = v19; operator delete(v20); v19 = v36; } } v22 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%.02f", v21, v19); a1->m_xMod = cocos2d::CCString::floatValue(v22); GJFollowCommandLayer::updateXMod(a1); m_xModSlider = a1->m_xModSlider; m_xMod = a1->m_xMod; goto LABEL_14; case 1: CCTextInputNode::getString(a2, (__int64)&v37); v14 = atof(v37); v15 = v37 - 24; v16 = (const char *)&qword_124B6B0; if ( v37 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v29 = (unsigned int *)(v37 - 8); do v16 = (const char *)__ldaxr(v29); while ( __stlxr((_DWORD)v16 - 1, v29) ); } else { v16 = (const char *)*((unsigned int *)v37 - 2); *((_DWORD *)v37 - 2) = (_DWORD)v16 - 1; } if ( (int)v16 <= 0 ) { v35 = v14; operator delete(v15); v14 = v35; } } v17 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%.02f", v16, v14); a1->m_yMod = cocos2d::CCString::floatValue(v17); GJFollowCommandLayer::updateYMod(a1); m_xMod = a1->m_yMod; m_xModSlider = a1->m_yModSlider; LABEL_14: v8 = 1.0; v9 = (float)(m_xMod * 0.5) + 0.5; v10 = v9 < 1.0; if ( v9 < 1.0 ) goto LABEL_15; goto LABEL_5; case 2: CCTextInputNode::getString(a2, (__int64)&v37); v11 = v37; v12 = atoi(v37); v13 = v11 - 24; if ( v11 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v31 = (unsigned int *)(v11 - 8); do v32 = __ldaxr(v31); while ( __stlxr(v32 - 1, v31) ); } else { v32 = *((_DWORD *)v11 - 2); *((_DWORD *)v11 - 2) = v32 - 1; } if ( v32 <= 0 ) operator delete(v13); } if ( v12 <= 0 ) v12 = 1; a1->m_targetGroupID = v12; GJFollowCommandLayer::updateTargetGroupID(a1); SetupTriggerPopup::updateEditorLabel(a1); return; case 3: CCTextInputNode::getString(a2, (__int64)&v37); v3 = atof(v37); v4 = v37 - 24; v5 = (const char *)&qword_124B6B0; if ( v37 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v26 = (unsigned int *)(v37 - 8); do v5 = (const char *)__ldaxr(v26); while ( __stlxr((_DWORD)v5 - 1, v26) ); } else { v5 = (const char *)*((unsigned int *)v37 - 2); *((_DWORD *)v37 - 2) = (_DWORD)v5 - 1; } if ( (int)v5 <= 0 ) { v34 = v3; operator delete(v4); v3 = v34; } } v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%.02f", v5, v3); a1->m_moveTime = cocos2d::CCString::floatValue(v6); GJFollowCommandLayer::updateDuration(a1); m_xModSlider = a1->m_moveTimeSlider; v8 = 1.0; v9 = a1->m_moveTime / 10.0; v10 = v9 < 1.0; if ( v9 >= 1.0 ) { LABEL_5: if ( !v10 ) v9 = v8; goto LABEL_7; } LABEL_15: if ( v9 > 0.0 ) { LABEL_7: Slider::setValue(m_xModSlider, v9); return; } Slider::setValue(m_xModSlider, 0.0); break; case 4: CCTextInputNode::getString(a2, (__int64)&v37); v23 = v37; v24 = atoi(v37); v25 = v23 - 24; if ( v23 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v27 = (unsigned int *)(v23 - 8); do v28 = __ldaxr(v27); while ( __stlxr(v28 - 1, v27) ); } else { v28 = *((_DWORD *)v23 - 2); *((_DWORD *)v23 - 2) = v28 - 1; } if ( v28 <= 0 ) operator delete(v25); } if ( v24 < 0 ) v24 = 0; a1->m_followGroupID = v24; GJFollowCommandLayer::updateTargetGroupID2(a1); return; default: return; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source