// // ColorSelectLiveOverlay::updateColorLabel from 0x100569fc0 to 0x10056a173 (435 bytes) // // 2 xrefs: // > ColorSelectLiveOverlay::init @ 0x100569781 // > ColorSelectLiveOverlay::onSelectTab @ 0x100569fb0 // // 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 ColorSelectLiveOverlay::updateColorLabel(ColorSelectLiveOverlay *a1) { __int64 v2; // r15 int m_targetColor; // r14d EffectGameObject *m_effectGameObject; // rax cocos2d::CCString *v5; // rax const char *CString; // rax cocos2d::CCLabelBMFont *m_colorLabel; // rdi std::string::pointer data; // rsi unsigned int v9; // r14d int v10; // eax unsigned int v11; // r14d __int64 v12; // rax unsigned int v13; // r14d __int64 v14; // rax std::string v15; // [rsp+0h] [rbp-30h] BYREF v2 = *((_QWORD *)&a1->m_baseColorAction + a1->m_detailColorSelected); if ( v2 ) { m_targetColor = *(_DWORD *)(v2 + 92); if ( m_targetColor <= 0 ) { LABEL_8: ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const std::string::value_type *))a1->m_colorLabel->setString)( a1->m_colorLabel, " "); return; } } else { m_effectGameObject = a1->m_effectGameObject; if ( !m_effectGameObject ) goto LABEL_8; m_targetColor = m_effectGameObject->m_targetColor; if ( m_targetColor <= 0 ) goto LABEL_8; } *(_WORD *)&v15.__r_.__value_.__l.0 = 0; if ( (unsigned int)m_targetColor > 0x3E7 ) { CString = GJSpecialColorSelect::textForColorIdx(m_targetColor); } else { v5 = (cocos2d::CCString *)sub_1007AB580("%i", *(_BYTE *)&v15.__r_.__value_.__l.0); CString = cocos2d::CCString::getCString(v5); } std::string::assign(&v15, CString); m_colorLabel = a1->m_colorLabel; if ( (*(_BYTE *)&v15.__r_.__value_.__s.0 & 1) != 0 ) data = v15.__r_.__value_.__l.__data_; else data = v15.__r_.__value_.__s.__data_; ((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::string::pointer))m_colorLabel->setString)(m_colorLabel, data); if ( v2 ) { if ( (unsigned int)m_targetColor < 0x3ED || (v9 = m_targetColor - 1009, v9 <= 5) && (v10 = 49, _bittest(&v10, v9)) ) { if ( (unsigned int)sub_100720070(a1->m_barSprites) ) { v11 = 0; do { v12 = sub_1007200C0(a1->m_barSprites, v11); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v12 + 328LL))(v12, 1); ++v11; } while ( v11 < (unsigned int)sub_100720070(a1->m_barSprites) ); } } else if ( (unsigned int)sub_100720070(a1->m_barSprites) ) { v13 = 0; do { v14 = sub_1007200C0(a1->m_barSprites, v13); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v14 + 328LL))(v14, 0); ++v13; } while ( v13 < (unsigned int)sub_100720070(a1->m_barSprites) ); } } if ( (*(_BYTE *)&v15.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v15.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source