// // GJPFollowCommandLayer::textChanged from 0x14028c650 to 0x14028ccb8 (1640 bytes) // // 4 xrefs: // > @ 0x14056f4f0 // > @ 0x1406888c0 // > @ 0x1406888d0 // > @ 0x1406d16c4 // // 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) { unsigned int v2; // edi _BYTE *v5; // rax size_t v6; // r8 const char *v7; // rcx int v8; // edi char *v9; // rcx _BYTE *v10; // rax size_t v11; // r8 const char *v12; // rcx float v13; // xmm6_4 char *v14; // rcx cocos2d::CCString *v15; // rax float v16; // xmm1_4 float v17; // xmm0_4 _BYTE *v18; // rax size_t v19; // r8 const char *v20; // rcx float v21; // xmm6_4 char *v22; // rcx cocos2d::CCString *v23; // rax float v24; // xmm1_4 float v25; // xmm0_4 _BYTE *v26; // rax size_t v27; // r8 const char *v28; // rcx float v29; // xmm6_4 char *v30; // rcx cocos2d::CCString *v31; // rax float v32; // xmm1_4 float v33; // xmm2_4 _BYTE *v34; // rax size_t v35; // r8 const char *v36; // rcx int v37; // eax unsigned __int64 v38; // rdx char *v39; // rcx __int64 v40; // rcx struct cocos2d::CCObject *v41; // rax _BYTE *v42; // rax size_t v43; // r8 const char *v44; // rcx float v45; // xmm6_4 char *v46; // rcx cocos2d::CCString *v47; // rax float v48; // xmm0_4 __int64 v49; // rax struct cocos2d::CCObject *v50; // rax char *String[2]; // [rsp+28h] [rbp-38h] BYREF __int128 v52; // [rsp+38h] [rbp-28h] v2 = 0; if ( !LOBYTE(a1->m_fSkewX) ) { switch ( a2->getTag(a2) ) { case 0: v10 = (_BYTE *)((__int64 (__fastcall *)(cocos2d::CCLabelProtocol *, unsigned __int64))a2->m_textField->getString)( &a2->m_textField->cocos2d::CCLabelProtocol, 0x140000000uLL); *(_OWORD *)String = 0; v11 = -1; v52 = 0; do ++v11; while ( v10[v11] ); sub_14003A930(String, v10, v11); v12 = (const char *)String; if ( *((_QWORD *)&v52 + 1) > 0xFu ) v12 = String[0]; v13 = atof(v12); if ( *((_QWORD *)&v52 + 1) > 0xFu ) { v14 = String[0]; if ( (unsigned __int64)(*((_QWORD *)&v52 + 1) + 1LL) >= 0x1000 ) { v14 = *((char **)String[0] - 1); if ( (unsigned __int64)(String[0] - v14 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v14); } v15 = cocos2d::CCString::createWithFormat("%.03f", v13); *((float *)&a1->m_pScriptKeypadHandlerEntry + 1) = cocos2d::CCString::floatValue(v15); GJPFollowCommandLayer::updateXMod((GJPFollowCommandLayer *)((char *)a1 - 632)); v16 = 0.0; v17 = fminf(1.0, *((float *)&a1->m_pScriptKeypadHandlerEntry + 1)); if ( v17 >= 0.0 ) v16 = v17; Slider::setValue(*(Slider **)&a1->m_bTouchEnabled, v16); break; case 1: v18 = (_BYTE *)((__int64 (__fastcall *)(cocos2d::CCLabelProtocol *, unsigned __int64))a2->m_textField->getString)( &a2->m_textField->cocos2d::CCLabelProtocol, 0x140000000uLL); *(_OWORD *)String = 0; v19 = -1; v52 = 0; do ++v19; while ( v18[v19] ); sub_14003A930(String, v18, v19); v20 = (const char *)String; if ( *((_QWORD *)&v52 + 1) > 0xFu ) v20 = String[0]; v21 = atof(v20); if ( *((_QWORD *)&v52 + 1) > 0xFu ) { v22 = String[0]; if ( (unsigned __int64)(*((_QWORD *)&v52 + 1) + 1LL) >= 0x1000 ) { v22 = *((char **)String[0] - 1); if ( (unsigned __int64)(String[0] - v22 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v22); } v23 = cocos2d::CCString::createWithFormat("%.02f", v21); *(float *)&a1->m_pScriptKeypadHandlerEntry = cocos2d::CCString::floatValue(v23); GJPFollowCommandLayer::updateYMod((GJPFollowCommandLayer *)((char *)a1 - 632)); v24 = 0.0; v25 = fminf(1.0, *(float *)&a1->m_pScriptKeypadHandlerEntry); if ( v25 >= 0.0 ) v24 = v25; Slider::setValue((Slider *)a1->m_pScriptTouchHandlerEntry, v24); break; case 2: v5 = (_BYTE *)((__int64 (__fastcall *)(cocos2d::CCLabelProtocol *, unsigned __int64))a2->m_textField->getString)( &a2->m_textField->cocos2d::CCLabelProtocol, 0x140000000uLL); *(_OWORD *)String = 0; v6 = -1; v52 = 0; do ++v6; while ( v5[v6] ); sub_14003A930(String, v5, v6); v7 = (const char *)String; if ( *((_QWORD *)&v52 + 1) > 0xFu ) v7 = String[0]; v8 = atoi(v7); if ( *((_QWORD *)&v52 + 1) > 0xFu ) { v9 = String[0]; if ( (unsigned __int64)(*((_QWORD *)&v52 + 1) + 1LL) >= 0x1000 ) { v9 = *((char **)String[0] - 1); if ( (unsigned __int64)(String[0] - v9 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v9); } if ( v8 < 1 ) v8 = 1; a1->m_uPreviousPriority = v8; GJPFollowCommandLayer::updateTargetGroupID((GJPFollowCommandLayer *)((char *)a1 - 632)); SetupTriggerPopup::updateEditorLabel((GJPFollowCommandLayer *)((char *)a1 - 632)); break; case 3: v26 = (_BYTE *)((__int64 (__fastcall *)(cocos2d::CCLabelProtocol *, unsigned __int64))a2->m_textField->getString)( &a2->m_textField->cocos2d::CCLabelProtocol, 0x140000000uLL); *(_OWORD *)String = 0; v27 = -1; v52 = 0; do ++v27; while ( v26[v27] ); sub_14003A930(String, v26, v27); v28 = (const char *)String; if ( *((_QWORD *)&v52 + 1) > 0xFu ) v28 = String[0]; v29 = atof(v28); if ( *((_QWORD *)&v52 + 1) > 0xFu ) { v30 = String[0]; if ( (unsigned __int64)(*((_QWORD *)&v52 + 1) + 1LL) >= 0x1000 ) { v30 = *((char **)String[0] - 1); if ( (unsigned __int64)(String[0] - v30 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v30); } v31 = cocos2d::CCString::createWithFormat("%.02f", v29); *(float *)&a1->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = cocos2d::CCString::floatValue(v31); GJFollowCommandLayer::updateDuration((__int64)&a1[-1].cocos2d::CCRGBAProtocol); v32 = 0.0; v33 = fminf( 1.0, *(float *)&a1->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable / 10.0); if ( v33 >= 0.0 ) v32 = v33; Slider::setValue(*(Slider **)&a1->m_bUseChildIndex, v32); break; case 5: v34 = (_BYTE *)((__int64 (__fastcall *)(cocos2d::CCLabelProtocol *, unsigned __int64))a2->m_textField->getString)( &a2->m_textField->cocos2d::CCLabelProtocol, 0x140000000uLL); *(_OWORD *)String = 0; v35 = -1; v52 = 0; do ++v35; while ( v34[v35] ); sub_14003A930(String, v34, v35); v36 = (const char *)String; if ( *((_QWORD *)&v52 + 1) > 0xFu ) v36 = String[0]; v37 = atoi(v36); v38 = *((_QWORD *)&v52 + 1); LODWORD(a1->m_pScriptAccelerateHandlerEntry) = (int)(float)((float)v37 * 3.0); if ( v38 > 0xF ) { v39 = String[0]; if ( v38 + 1 >= 0x1000 ) { v39 = *((char **)String[0] - 1); if ( (unsigned __int64)(String[0] - v39 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v39); } v40 = *(_QWORD *)&a1->m_uAutoReleaseCount; if ( v40 ) { *(_DWORD *)(v40 + 1600) = a1->m_pScriptAccelerateHandlerEntry; } else if ( cocos2d::CCArray::count(*(cocos2d::CCArray **)&a1->m_uIndexInArray) ) { do { v41 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)&a1->m_uIndexInArray, v2++); v41[28].m_uIndexInArray = (int)a1->m_pScriptAccelerateHandlerEntry; } while ( v2 < cocos2d::CCArray::count(*(cocos2d::CCArray **)&a1->m_uIndexInArray) ); } break; case 6: v42 = (_BYTE *)((__int64 (__fastcall *)(cocos2d::CCLabelProtocol *, unsigned __int64))a2->m_textField->getString)( &a2->m_textField->cocos2d::CCLabelProtocol, 0x140000000uLL); *(_OWORD *)String = 0; v43 = -1; v52 = 0; do ++v43; while ( v42[v43] ); sub_14003A930(String, v42, v43); v44 = (const char *)String; if ( *((_QWORD *)&v52 + 1) > 0xFu ) v44 = String[0]; v45 = atof(v44); if ( *((_QWORD *)&v52 + 1) > 0xFu ) { v46 = String[0]; if ( (unsigned __int64)(*((_QWORD *)&v52 + 1) + 1LL) >= 0x1000 ) { v46 = *((char **)String[0] - 1); if ( (unsigned __int64)(String[0] - v46 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v46); } v47 = cocos2d::CCString::createWithFormat("%.01f", v45); v48 = cocos2d::CCString::floatValue(v47); *((float *)&a1->m_pScriptAccelerateHandlerEntry + 1) = v48; v49 = *(_QWORD *)&a1->m_uAutoReleaseCount; if ( v49 ) { *(float *)(v49 + 1604) = v48; } else if ( cocos2d::CCArray::count(*(cocos2d::CCArray **)&a1->m_uIndexInArray) ) { do { v50 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)&a1->m_uIndexInArray, v2++); v50[28].m_uUnknown = HIDWORD(a1->m_pScriptAccelerateHandlerEntry); } while ( v2 < cocos2d::CCArray::count(*(cocos2d::CCArray **)&a1->m_uIndexInArray) ); } break; default: return; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source