// // SetupRandTriggerPopup::updateChanceLabel from 0x140440a40 to 0x140440b04 (196 bytes) // // 3 xrefs: // > SetupRandTriggerPopup::init @ 0x140440769 // > SetupRandTriggerPopup::sliderChanged @ 0x140440a37 // > @ 0x1406da34c // // 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 SetupRandTriggerPopup::updateChanceLabel(SetupRandTriggerPopup *a1, bool a2) { float m_chancePercent; // xmm3_4 const char *CString; // rax cocos2d::CCString *v5; // rax size_t v6; // r8 __int128 v7; // [rsp+20h] [rbp-28h] BYREF __int64 v8; // [rsp+30h] [rbp-18h] __int64 v9; // [rsp+38h] [rbp-10h] m_chancePercent = a1->m_chancePercent; CString = "Mixed"; a1->m_disableTextDelegate = 1; if ( m_chancePercent != -99999.0 ) { if ( (float)(m_chancePercent - (float)(int)m_chancePercent) == 0.0 ) v5 = cocos2d::CCString::createWithFormat("%i", (int)m_chancePercent); else v5 = cocos2d::CCString::createWithFormat("%.04f", m_chancePercent); CString = cocos2d::CCString::getCString(v5); } v7 = 0; v8 = 0; v6 = -1; v9 = 0; do ++v6; while ( CString[v6] ); sub_14003A930(&v7, CString, v6); CCTextInputNode::setString((__int64)a1->m_chanceInput, &v7); a1->m_disableTextDelegate = 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source