// // GJPFollowCommandLayer::textChanged from 0x924d38 to 0x9251c8 (1168 bytes) // // 3 xrefs: // > `non-virtual thunk to'GJPFollowCommandLayer::textChanged @ 0x9251cc // > @ 0xc3f60 // > @ 0x11ae098 // // 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 GJPFollowCommandLayer::textChanged(GJPFollowCommandLayer *a1, CCTextInputNode *a2) { float v3; // s0 char *v4; // x0 const char *v5; // x1 cocos2d::CCString *v6; // x0 char *v7; // x21 float v8; // s0 char *v9; // x0 float v10; // s0 char *v11; // x0 const char *v12; // x1 cocos2d::CCString *v13; // x0 Slider *m_speedSlider; // x0 float v15; // s1 float m_speed; // s0 bool v17; // nf char *v18; // x22 int v19; // w21 char *v20; // x0 float v21; // s0 char *v22; // x0 const char *v23; // x1 cocos2d::CCString *v24; // x0 float v25; // s0 char *v26; // x0 const char *v27; // x1 cocos2d::CCString *v28; // x0 unsigned int *v29; // x2 unsigned int *v30; // x21 int v31; // w1 unsigned int *v32; // x2 unsigned int *v33; // x2 unsigned int *v34; // x2 unsigned int *v35; // x22 int v36; // w1 float v38; // [xsp+30h] [xbp+30h] float v39; // [xsp+30h] [xbp+30h] float v40; // [xsp+30h] [xbp+30h] float v41; // [xsp+30h] [xbp+30h] char *v42; // [xsp+50h] [xbp+50h] BYREF if ( !a1->m_disableTextDelegate ) { switch ( a2->getTag(a2) ) { case 0: CCTextInputNode::getString(a2, (__int64)&v42); v25 = atof(v42); v26 = v42 - 24; v27 = (const char *)&qword_124B6B0; if ( v42 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v33 = (unsigned int *)(v42 - 8); do v27 = (const char *)__ldaxr(v33); while ( __stlxr((_DWORD)v27 - 1, v33) ); } else { v27 = (const char *)*((unsigned int *)v42 - 2); *((_DWORD *)v42 - 2) = (_DWORD)v27 - 1; } if ( (int)v27 <= 0 ) { v40 = v25; operator delete(v26); v25 = v40; } } v28 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%.03f", v27, v25); a1->m_speed = cocos2d::CCString::floatValue(v28); GJPFollowCommandLayer::updateXMod(a1); m_speed = a1->m_speed; m_speedSlider = a1->m_speedSlider; v15 = 1.0; v17 = m_speed < 1.0; if ( m_speed >= 1.0 ) goto LABEL_9; goto LABEL_18; case 1: CCTextInputNode::getString(a2, (__int64)&v42); v21 = atof(v42); v22 = v42 - 24; v23 = (const char *)&qword_124B6B0; if ( v42 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v34 = (unsigned int *)(v42 - 8); do v23 = (const char *)__ldaxr(v34); while ( __stlxr((_DWORD)v23 - 1, v34) ); } else { v23 = (const char *)*((unsigned int *)v42 - 2); *((_DWORD *)v42 - 2) = (_DWORD)v23 - 1; } if ( (int)v23 <= 0 ) { v41 = v21; operator delete(v22); v21 = v41; } } v24 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%.02f", v23, v21); a1->m_delay = cocos2d::CCString::floatValue(v24); GJPFollowCommandLayer::updateYMod(a1); m_speed = a1->m_delay; m_speedSlider = a1->m_delaySlider; v15 = 1.0; v17 = m_speed < 1.0; if ( m_speed < 1.0 ) goto LABEL_18; goto LABEL_9; case 2: CCTextInputNode::getString(a2, (__int64)&v42); v18 = v42; v19 = atoi(v42); v20 = v18 - 24; if ( v18 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v35 = (unsigned int *)(v18 - 8); do v36 = __ldaxr(v35); while ( __stlxr(v36 - 1, v35) ); } else { v36 = *((_DWORD *)v18 - 2); *((_DWORD *)v18 - 2) = v36 - 1; } if ( v36 <= 0 ) operator delete(v20); } if ( v19 <= 0 ) v19 = 1; a1->m_targetGroupID = v19; GJPFollowCommandLayer::updateTargetGroupID(a1); SetupTriggerPopup::updateEditorLabel(a1); return; case 3: CCTextInputNode::getString(a2, (__int64)&v42); v10 = atof(v42); v11 = v42 - 24; v12 = (const char *)&qword_124B6B0; if ( v42 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v29 = (unsigned int *)(v42 - 8); do v12 = (const char *)__ldaxr(v29); while ( __stlxr((_DWORD)v12 - 1, v29) ); } else { v12 = (const char *)*((unsigned int *)v42 - 2); *((_DWORD *)v42 - 2) = (_DWORD)v12 - 1; } if ( (int)v12 <= 0 ) { v38 = v10; operator delete(v11); v10 = v38; } } v13 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%.02f", v12, v10); a1->m_moveTime = cocos2d::CCString::floatValue(v13); GJPFollowCommandLayer::updateDuration(a1); m_speedSlider = a1->m_moveTimeSlider; v15 = 1.0; m_speed = a1->m_moveTime / 10.0; v17 = m_speed < 1.0; if ( m_speed >= 1.0 ) { LABEL_9: if ( !v17 ) m_speed = v15; goto LABEL_11; } LABEL_18: if ( m_speed > 0.0 ) { LABEL_11: Slider::setValue(m_speedSlider, m_speed); return; } Slider::setValue(m_speedSlider, 0.0); break; case 5: CCTextInputNode::getString(a2, (__int64)&v42); v7 = v42; v8 = (float)atoi(v42); v9 = v7 - 24; a1->m_offset = (int)(float)(v8 * 3.0); if ( v7 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v30 = (unsigned int *)(v7 - 8); do v31 = __ldaxr(v30); while ( __stlxr(v31 - 1, v30) ); } else { v31 = *((_DWORD *)v7 - 2); *((_DWORD *)v7 - 2) = v31 - 1; } if ( v31 <= 0 ) operator delete(v9); } GJPFollowCommandLayer::updatePlayerOffset(a1); return; case 6: CCTextInputNode::getString(a2, (__int64)&v42); v3 = atof(v42); v4 = v42 - 24; v5 = (const char *)&qword_124B6B0; if ( v42 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v32 = (unsigned int *)(v42 - 8); do v5 = (const char *)__ldaxr(v32); while ( __stlxr((_DWORD)v5 - 1, v32) ); } else { v5 = (const char *)*((unsigned int *)v42 - 2); *((_DWORD *)v42 - 2) = (_DWORD)v5 - 1; } if ( (int)v5 <= 0 ) { v39 = v3; operator delete(v4); v3 = v39; } } v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%.01f", v5, v3); a1->m_maxSpeed = cocos2d::CCString::floatValue(v6); GJPFollowCommandLayer::updateMaxSpeed(a1); return; default: return; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source