// // SetupMGTrigger::textChanged from 0x69a4e4 to 0x69a626 (322 bytes) // // 1 xrefs: // > `non-virtual thunk to'SetupMGTrigger::textChanged @ 0x69a638 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:56:18 +0000 // int __fastcall SetupMGTrigger::textChanged(int this, CCTextInputNode *a2) { SetupMGTrigger *v2; // r4 char *v4; // r0 int v5; // s16 Slider *v6; // r5 float v7; // r1 Slider *v8; // r0 char *v9; // r0 double v10; // d8 const char *v11; // r1 cocos2d::CCString *v12; // r0 float v13; // s15 char v14; // [sp+0h] [bp-14h] BYREF _BYTE v15[7]; // [sp+1h] [bp-13h] BYREF char *v16; // [sp+8h] [bp-Ch] v2 = (SetupMGTrigger *)this; if ( !*(_BYTE *)(this + 568) ) { this = (*(int (__fastcall **)(CCTextInputNode *))(*(_DWORD *)a2 + 32))(a2); if ( this == 1 ) { CCTextInputNode::getString((CCTextInputNode *)&v14, (int)a2); if ( (v14 & 1) != 0 ) v4 = v16; else v4 = v15; v5 = atoi(v4); std::string::~string((int)&v14); *((_DWORD *)v2 + 188) = (int)(float)((float)v5 * 3.0); SetupMGTrigger::updateMoveCommandPosY(v2); v6 = *((Slider **)v2 + 187); if ( COERCE_FLOAT(SetupMGTrigger::sliderValueFromPos(v2, *((_DWORD *)v2 + 188))) >= 1.0 ) v7 = 1.0; else v7 = COERCE_FLOAT(SetupMGTrigger::sliderValueFromPos(v2, *((_DWORD *)v2 + 188))); v8 = v6; } else { if ( this != 3 ) return this; CCTextInputNode::getString((CCTextInputNode *)&v14, (int)a2); if ( (v14 & 1) != 0 ) v9 = v16; else v9 = v15; v10 = atof(v9); std::string::~string((int)&v14); *(float *)&v10 = v10; v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%.02f", v11, *(float *)&v10); *((_DWORD *)v2 + 180) = cocos2d::CCString::floatValue(v12); SetupMGTrigger::updateDuration((unsigned int)v2); v8 = *((Slider **)v2 + 179); v13 = *((float *)v2 + 180) / 10.0; if ( v13 >= 1.0 ) { v13 = 1.0; } else if ( v13 <= 0.0 ) { v13 = 0.0; } v7 = v13; } return Slider::setValue(v8, v7); } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source