// // SetupCameraOffsetTrigger::updateValueYLabel from 0x1006630c0 to 0x1006631d9 (281 bytes) // // 2 xrefs: // > SetupCameraOffsetTrigger::init @ 0x100662770 // > SetupCameraOffsetTrigger::sliderYChanged @ 0x100662e1c // // 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 __fastcall SetupCameraOffsetTrigger::updateValueYLabel(SetupCameraOffsetTrigger *a1) { __m128 v1; // xmm0 int m_offsetY; // eax const char *CString; // r15 cocos2d::CCString *v4; // rax CCTextInputNode *m_offsetYInput; // r14 size_t v6; // rax size_t v7; // r12 char *v8; // r13 size_t v9; // r14 char v10; // [rsp+0h] [rbp-50h] CCTextInputNode *v11; // [rsp+8h] [rbp-48h] _QWORD __dst[2]; // [rsp+10h] [rbp-40h] BYREF void *__p; // [rsp+20h] [rbp-30h] a1->m_disableTextDelegate = 1; m_offsetY = a1->m_offsetY; if ( m_offsetY == -99999 ) { CString = ""; } else { v1.f32[0] = (float)m_offsetY / 3.0; v1 = _mm_round_ss(v1, v1, 9); v4 = (cocos2d::CCString *)sub_1007AB580("%i", v10); CString = cocos2d::CCString::getCString(v4); } m_offsetYInput = a1->m_offsetYInput; v6 = strlen(CString); if ( v6 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(*(double *)v1.i64); v7 = v6; if ( v6 >= 0x17 ) { v11 = a1->m_offsetYInput; v9 = 26; if ( (v6 | 7) != 0x17 ) v9 = (v6 | 7) + 1; v8 = (char *)operator new(v9); __p = v8; __dst[0] = v9 + 1; m_offsetYInput = v11; __dst[1] = v7; goto LABEL_11; } LOBYTE(__dst[0]) = 2 * v6; v8 = (char *)__dst + 1; if ( v6 ) LABEL_11: memmove(v8, CString, v7); v8[v7] = 0; CCTextInputNode::setString(m_offsetYInput, (__int64)__dst, v1); if ( (__dst[0] & 1) != 0 ) operator delete(__p); a1->m_disableTextDelegate = 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source