// // cocos2d::CCDirector::showStats from 0xad7468 to 0xad750c (164 bytes) // // 2 xrefs: // > cocos2d::CCDirector::drawScene @ 0xad766c // > @ 0x4eb58 // // 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 cocos2d::CCDirector::showStats(cocos2d::CCDirector *a1) { _BOOL4 m_bDisplayStats; // w1 float v2; // s0 cocos2d::CCLabelAtlas *m_pDrawsLabel; // x1 unsigned __int8 *m_pszFPS; // x0 m_bDisplayStats = a1->m_bDisplayStats; v2 = a1->m_fAccumDt + a1->m_fDeltaTime; a1->m_fAccumDt = v2; if ( m_bDisplayStats ) { m_pDrawsLabel = a1->m_pDrawsLabel; if ( m_pDrawsLabel ) { if ( v2 > 0.5 ) { m_pszFPS = a1->m_pszFPS; a1->m_fAccumDt = 0.0; sprintf((char *)m_pszFPS, "%4lu", (unsigned int)g_uNumberOfDraws); a1->m_pDrawsLabel->setString(a1->m_pDrawsLabel, a1->m_pszFPS); m_pDrawsLabel = a1->m_pDrawsLabel; } m_pDrawsLabel->visit(m_pDrawsLabel); } } g_uNumberOfDraws = 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source