// // SetupCameraOffsetTrigger::textChanged from 0xaaef20 to 0xaaf168 (584 bytes) // // 3 xrefs: // > `non-virtual thunk to'SetupCameraOffsetTrigger::textChanged @ 0xaaf16c // > @ 0x642e8 // > @ 0x14a5458 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 13:00:55 +0000 // __int64 __fastcall SetupCameraOffsetTrigger::textChanged(SetupCameraOffsetTrigger *this, CCTextInputNode *a2) { int v4; // w0 int v5; // w21 Slider *v6; // x21 float v7; // s0 float v8; // s1 float v9; // s0 char *v10; // x0 const char *v11; // x1 float v12; // s8 cocos2d::CCString *v13; // x0 int v14; // s0 Slider *v15; // x0 float v16; // s0 int v17; // w21 float v18; // s0 char *v19; // x22 char *v20; // x22 __int64 v22[2]; // [xsp+50h] [xbp+50h] BYREF char *v23; // [xsp+60h] [xbp+60h] if ( *((_BYTE *)this + 744) ) return _stack_chk_guard; v4 = (*(__int64 (__fastcall **)(CCTextInputNode *))(*(_QWORD *)a2 + 64LL))(a2); if ( v4 == 1 ) { CCTextInputNode::getString(a2, v22); if ( (v22[0] & 1) != 0 ) { v19 = v23; v17 = atoi(v23); operator delete(v19); } else { v17 = atoi((const char *)v22 + 1); } *((_DWORD *)this + 277) = (int)(float)((float)v17 * 3.0); SetupCameraOffsetTrigger::updateMoveCommandPosY(this); v6 = *((Slider **)this + 137); v18 = SetupCameraOffsetTrigger::sliderValueFromPos(this, *((_DWORD *)this + 277)); v8 = 1.0; if ( v18 < 1.0 ) { v9 = SetupCameraOffsetTrigger::sliderValueFromPos(this, *((_DWORD *)this + 277)); goto LABEL_21; } goto LABEL_20; } if ( v4 != 3 ) { if ( v4 ) return _stack_chk_guard; CCTextInputNode::getString(a2, v22); if ( (v22[0] & 1) != 0 ) { v20 = v23; v5 = atoi(v23); operator delete(v20); } else { v5 = atoi((const char *)v22 + 1); } *((_DWORD *)this + 276) = (int)(float)((float)v5 * 3.0); SetupCameraOffsetTrigger::updateMoveCommandPosX(this); v6 = *((Slider **)this + 136); v7 = SetupCameraOffsetTrigger::sliderValueFromPos(this, *((_DWORD *)this + 276)); v8 = 1.0; if ( v7 < 1.0 ) { v9 = SetupCameraOffsetTrigger::sliderValueFromPos(this, *((_DWORD *)this + 276)); LABEL_21: Slider::setValue(v6, v9); return _stack_chk_guard; } LABEL_20: v9 = v8; goto LABEL_21; } CCTextInputNode::getString(a2, v22); v10 = (char *)v22 + 1; if ( (v22[0] & 1) != 0 ) v10 = v23; v12 = atof(v10); if ( (v22[0] & 1) != 0 ) operator delete(v23); v13 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%.02f", v11, v12); cocos2d::CCString::floatValue(v13); *((_DWORD *)this + 258) = v14; SetupCameraOffsetTrigger::updateDuration(this); v15 = *((Slider **)this + 128); v16 = *((float *)this + 258) / 10.0; if ( v16 < 1.0 ) { if ( v16 <= 0.0 ) { Slider::setValue(v15, 0.0); return _stack_chk_guard; } } else { v16 = 1.0; } Slider::setValue(v15, v16); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source