// // CCCounterLabel::setTargetCount from 0x100511890 to 0x10051190f (127 bytes) // // 2 xrefs: // > GJShopLayer::updateCurrencyCounter @ 0x10032502c // > GJShopLayer::didPurchaseItem @ 0x100325647 // // 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 CCCounterLabel::setTargetCount(CCCounterLabel *a1, int a2) { float v2; // xmm0_4 float v3; // xmm1_4 int m_stepCount; // ecx a1->m_targetCount = a2; v2 = (float)a2 - (float)a1->m_currentCount; v3 = fabs(v2); m_stepCount = (int)v3; if ( (float)a1->m_stepCount <= v3 ) m_stepCount = a1->m_stepCount; a1->m_stepSize = (int)(float)(v2 / (float)m_stepCount); if ( !a1->m_counterEnabled ) { a1->m_counterEnabled = 1; if ( !a1->m_dontSchedule ) cocos2d::CCNode::schedule_1( a1, (cocos2d::SEL_SCHEDULE)(unsigned __int64)CCCounterLabel::updateCounter, 0.033333335); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source