// // SetupRandTriggerPopup::updateChanceLabel from 0x1001caa5c to 0x1001cab18 (188 bytes) // // 2 xrefs: // > SetupRandTriggerPopup::init @ 0x1001ca668 // > SetupRandTriggerPopup::sliderChanged @ 0x1001caa58 // // 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 SetupRandTriggerPopup::updateChanceLabel(SetupRandTriggerPopup *a1, bool a2) { float m_chancePercent; // s0 cocos2d::CCString *v4; // x0 char *CString; // x1 CCTextInputNode *m_chanceInput; // x20 void *__p[2]; // [xsp+8h] [xbp-28h] BYREF char v8; // [xsp+1Fh] [xbp-11h] a1->m_disableTextDelegate = 1; m_chancePercent = a1->m_chancePercent; if ( m_chancePercent == -99999.0 ) { CString = "Mixed"; } else { if ( a2 || m_chancePercent != (float)(int)m_chancePercent ) v4 = (cocos2d::CCString *)sub_100268F4C("%.04f"); else v4 = (cocos2d::CCString *)sub_100268F4C("%i"); CString = (char *)cocos2d::CCString::getCString(v4); } m_chanceInput = a1->m_chanceInput; sub_100009900(__p, CString); CCTextInputNode::setString(m_chanceInput, (__int64 **)__p); if ( v8 < 0 ) operator delete(__p[0]); a1->m_disableTextDelegate = 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source