// // SecretGame01Layer::update from 0x59e698 to 0x59e752 (186 bytes) // // 0 xrefs: // // 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; // r5 void (__fastcall *setScaleX)(cocos2d::CCSprite *__hidden, float); // r6 const cocos2d::CCSize *(__fastcall *getContentSize)(const cocos2d::CCNode *__hidden); // r3 float v6; // s15 if ( a1->m_gameActive ) { m_timeBarSprite = a1->m_timeBarSprite; setScaleX = m_timeBarSprite->setScaleX; getContentSize = m_timeBarSprite->getContentSize; a1->m_timeElapsed = a1->m_timeElapsed + a2; v6 = 0.01; if ( (float)((float)(100.0 / *(float *)((int (__fastcall *)(cocos2d::CCSprite *, _DWORD))getContentSize)( m_timeBarSprite, LODWORD(a2))) * (float)(1.0 - (float)(a1->m_timeElapsed / a1->m_gameTime))) > 0.01 ) { m_timeBarSprite = a1->m_timeBarSprite; v6 = (float)(100.0 / m_timeBarSprite->getContentSize(m_timeBarSprite)->width) * (float)(1.0 - (float)(a1->m_timeElapsed / a1->m_gameTime)); } ((void (__fastcall *)(cocos2d::CCSprite *, _DWORD))setScaleX)(m_timeBarSprite, LODWORD(v6)); if ( a1->m_timeElapsed >= a1->m_gameTime ) SecretGame01Layer::showGameOver(a1); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source