// // ConfigureHSVWidget::updateLabels from 0x5e5208 to 0x5e54b8 (688 bytes) // // 5 xrefs: // > ConfigureHSVWidget::sliderChanged @ 0x5e5596 // > ConfigureHSVWidget::onToggleSConst @ 0x5e5602 // > ConfigureHSVWidget::onToggleVConst @ 0x5e5656 // > ConfigureHSVWidget::onResetHSV @ 0x5e56ac // > ConfigureHSVWidget::init @ 0x5e5c6a // // 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:54:19 +0000 // int __fastcall ConfigureHSVWidget::updateLabels(ConfigureHSVWidget *this) { int v1; // r6 int v3; // r6 const char *v4; // r1 cocos2d::CCString *v5; // r0 const char *CString; // r7 size_t v7; // r0 int v8; // r6 const char *v9; // r1 cocos2d::CCString *v10; // r0 const char *v11; // r0 const char *v12; // r7 size_t v13; // r0 int v14; // r7 const char *v15; // r1 cocos2d::CCString *v16; // r0 const char *v17; // r0 const char *v18; // r9 size_t v19; // r0 int result; // r0 cocos2d::CCString *v21; // r0 char *v22; // r0 char *v23; // r1 const char *v24; // r1 cocos2d::CCString *v25; // r0 char *v26; // r0 char *v27; // r1 char *v28; // r1 const char *v29; // r1 cocos2d::CCString *v30; // r0 char *v31; // r0 char *v32; // r1 char *v33; // r1 int v34[2]; // [sp+0h] [bp-2Ch] BYREF char *v35; // [sp+8h] [bp-24h] int v36[2]; // [sp+Ch] [bp-20h] BYREF char *v37; // [sp+14h] [bp-18h] int v38; // [sp+18h] [bp-14h] BYREF int v39; // [sp+1Ch] [bp-10h] char *v40; // [sp+20h] [bp-Ch] v1 = *((unsigned __int8 *)this + 316); if ( *((_BYTE *)this + 316) ) { *((_BYTE *)this + 317) = 1; v3 = cocos2d::CCDictionary::objectForKey(*((cocos2d::CCDictionary **)this + 80), 1); v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%.0f", v4, *((float *)this + 73)); v38 = 0; v39 = 0; v40 = nullptr; CString = (const char *)cocos2d::CCString::getCString(v5); v7 = strlen(CString); std::string::__init(&v38, CString, v7); CCTextInputNode::setString(v3, (int)&v38); std::string::~string((int)&v38); v8 = cocos2d::CCDictionary::objectForKey(*((cocos2d::CCDictionary **)this + 80), 2); v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%.2f", v9, *((float *)this + 74)); v11 = (const char *)cocos2d::CCString::getCString(v10); v38 = 0; v39 = 0; v40 = nullptr; v12 = v11; v13 = strlen(v11); std::string::__init(&v38, v12, v13); CCTextInputNode::setString(v8, (int)&v38); std::string::~string((int)&v38); v14 = cocos2d::CCDictionary::objectForKey(*((cocos2d::CCDictionary **)this + 80), 3); v16 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%.2f", v15, *((float *)this + 75)); v17 = (const char *)cocos2d::CCString::getCString(v16); v38 = 0; v39 = 0; v40 = nullptr; v18 = v17; v19 = strlen(v17); std::string::__init(&v38, v18, v19); CCTextInputNode::setString(v14, (int)&v38); result = std::string::~string((int)&v38); *((_BYTE *)this + 317) = 0; goto LABEL_27; } v34[0] = *((unsigned __int8 *)this + 316); v34[1] = v1; v35 = (char *)v1; std::string::__init(v34, "Hue: ", 5u); if ( *((float *)this + 73) > 0.0 ) std::string::append(v34, "+"); v21 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)(int)*((float *)this + 73)); v22 = (char *)cocos2d::CCString::getCString(v21); std::string::append(v34, v22); if ( (v34[0] & 1) != 0 ) v23 = v35; else v23 = (char *)v34 + 1; (*(void (__fastcall **)(_DWORD, char *))(**((_DWORD **)this + 67) + 464))(*((_DWORD *)this + 67), v23); v36[0] = 0; v36[1] = 0; v37 = nullptr; std::string::__init(v36, "Saturation: ", 0xCu); if ( !*((_BYTE *)this + 304) ) { v27 = "x"; goto LABEL_13; } if ( *((float *)this + 74) > 0.0 ) { v27 = "+"; LABEL_13: std::string::append(v36, v27); } v25 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%.02f", v24, *((float *)this + 74)); v26 = (char *)cocos2d::CCString::getCString(v25); std::string::append(v36, v26); if ( (v36[0] & 1) != 0 ) v28 = v37; else v28 = (char *)v36 + 1; (*(void (__fastcall **)(_DWORD, char *))(**((_DWORD **)this + 68) + 464))(*((_DWORD *)this + 68), v28); v38 = 0; v39 = 0; v40 = nullptr; std::string::__init(&v38, "Brightness: ", 0xCu); if ( *((_BYTE *)this + 305) ) { if ( *((float *)this + 75) <= 0.0 ) goto LABEL_19; v32 = "+"; } else { v32 = "x"; } std::string::append(&v38, v32); LABEL_19: v30 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%.02f", v29, *((float *)this + 75)); v31 = (char *)cocos2d::CCString::getCString(v30); std::string::append(&v38, v31); if ( (v38 & 1) != 0 ) v33 = v40; else v33 = (char *)&v38 + 1; (*(void (__fastcall **)(_DWORD, char *, int))(**((_DWORD **)this + 69) + 464))( *((_DWORD *)this + 69), v33, (unsigned __int8)v38 << 31); std::string::~string((int)&v38); std::string::~string((int)v36); result = std::string::~string((int)v34); LABEL_27: *((_BYTE *)this + 308) = 0; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source