// // CurrencyRewardLayer::incrementCount from 0x90e0b8 to 0x90e1e8 (304 bytes) // // 2 xrefs: // > CurrencyRewardLayer::update @ 0x90edc0 // > @ 0x34908 // // 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 CurrencyRewardLayer::incrementCount(CurrencyRewardLayer *a1, int a2) { cocos2d::CCSprite *m_orbsSprite; // x1 unsigned int m_orbs; // w1 cocos2d::CCLabelBMFont *m_orbsLabel; // x22 size_t v7; // x20 void (__fastcall *setString)(cocos2d::CCLabelBMFont *__hidden, const unsigned __int8 *); // x23 size_t v9; // [xsp+48h] [xbp+48h] BYREF unsigned __int64 v10; // [xsp+50h] [xbp+50h] unsigned __int8 *v11; // [xsp+58h] [xbp+58h] _BYTE v12[504]; // [xsp+60h] [xbp+60h] BYREF if ( a1->m_orbsLabel ) { m_orbsSprite = a1->m_orbsSprite; a1->m_orbs += a2; CurrencyRewardLayer::pulseSprite(a1, m_orbsSprite); v9 = 0; m_orbs = a1->m_orbs; v10 = 500; v11 = v12; fmt::BasicWriter::FormatInt,char>>(&v9, m_orbs); m_orbsLabel = a1->m_orbsLabel; v7 = v9; setString = m_orbsLabel->setString; if ( v9 + 1 > v10 ) fmt::internal::Array::grow(&v9, v9 + 1); v11[v7] = 0; setString(m_orbsLabel, v11); if ( v11 != v12 ) { if ( v11 ) operator delete[](v11); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source