// // ProfilePage::toggleShip from 0x4c42b8 to 0x4c430e (86 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 ProfilePage::toggleShip(ProfilePage *a1, cocos2d::CCObject *a2) { int v2; // r7 SimplePlayer *v5; // r6 int v6; // r0 GJUserScore *m_score; // r3 IconType v8; // r5 int m_playerJetpack; // r1 v5 = (SimplePlayer *)((int (__fastcall *)(cocos2d::CCObject *))a2->__vftable[13].~CCObject_0)(a2); v6 = a2->getTag(a2); m_score = a1->m_score; if ( v6 == 1 ) v8 = Jetpack; else v8 = Ship; if ( v6 == 1 ) { m_playerJetpack = m_score->m_playerJetpack; v2 = 1063675494; } else { m_playerJetpack = m_score->m_playerShip; } if ( v6 != 1 ) v2 = 1064514355; SimplePlayer::updatePlayerFrame(v5, m_playerJetpack, v8); ((void (__fastcall *)(SimplePlayer *, int))v5->setScale)(v5, v2); a2->setTag(a2, v8); }
GD Web Decomp Icon

GD Web Decomp

Raw Source