// // SetupRandTriggerPopup::updateChanceLabel from 0x504b50 to 0x504bf8 (168 bytes) // // 2 xrefs: // > SetupRandTriggerPopup::sliderChanged @ 0x504c78 // > SetupRandTriggerPopup::init @ 0x505568 // // 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; // s15 cocos2d::CCString *v4; // r0 char *CString; // r1 CCTextInputNode *m_chanceInput; // r7 char *v7; // r2 char v8[4]; // [sp+8h] [bp-Ch] BYREF m_chancePercent = a1->m_chancePercent; a1->m_disableTextDelegate = 1; if ( m_chancePercent == -99999.0 ) { CString = "Mixed"; } else { if ( a2 || (float)(m_chancePercent - (float)(int)m_chancePercent) != 0.0 ) v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%.04f", (const char *)a2, m_chancePercent); else v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)(int)m_chancePercent); CString = (char *)cocos2d::CCString::getCString(v4); } m_chanceInput = a1->m_chanceInput; sub_776584((int)v8, CString); CCTextInputNode::setString((int)m_chanceInput, v8, v7); sub_774008(v8); a1->m_disableTextDelegate = 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source