// // SecretGame01Layer::update from 0xa94cdc to 0xa94dc8 (236 bytes) // // 2 xrefs: // > @ 0x939d8 // > @ 0x11f3f48 // // 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 SecretGame01Layer::update(SecretGame01Layer *a1, float a2) { cocos2d::CCSprite *m_timeBarSprite; // x20 const cocos2d::CCSize *(__fastcall *getContentSize)(const cocos2d::CCNode *__hidden); // x2 void (__fastcall *setScaleX)(cocos2d::CCSprite *__hidden, float); // x21 if ( a1->m_gameActive ) { m_timeBarSprite = a1->m_timeBarSprite; getContentSize = m_timeBarSprite->getContentSize; setScaleX = m_timeBarSprite->setScaleX; a1->m_timeElapsed = a1->m_timeElapsed + a2; if ( (float)((float)(100.0 / getContentSize(m_timeBarSprite)->width) * (float)(1.0 - (float)(a1->m_timeElapsed / a1->m_gameTime))) > 0.01 ) { m_timeBarSprite = a1->m_timeBarSprite; m_timeBarSprite->getContentSize(m_timeBarSprite); } ((void (__fastcall *)(cocos2d::CCSprite *))setScaleX)(m_timeBarSprite); if ( a1->m_timeElapsed >= a1->m_gameTime ) SecretGame01Layer::showGameOver(a1); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source