// // CharacterColorPage::toggleShip from 0x564a5c to 0x564ac0 (100 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 CharacterColorPage::toggleShip(CharacterColorPage *a1, cocos2d::CCObject *a2) { SimplePlayer *v3; // r6 GameManager *v4; // r0 int v5; // r7 IconType v6; // r5 int v7; // r1 GameManager *v8; // r0 v3 = (SimplePlayer *)((int (__fastcall *)(cocos2d::CCObject *))a2->__vftable[13].~CCObject_0)(a2); if ( a2->getTag(a2) == 1 ) { v4 = GameManager::sharedState(); v5 = 1065772646; v6 = Jetpack; v7 = v4->m_playerJetpack.random - v4->m_playerJetpack.seed; } else { v8 = GameManager::sharedState(); v5 = 1066611507; v6 = Ship; v7 = v8->m_playerShip.random - v8->m_playerShip.seed; } SimplePlayer::updatePlayerFrame(v3, v7, v6); ((void (__fastcall *)(SimplePlayer *, int))v3->setScale)(v3, v5); a2->setTag(a2, v6); }
GD Web Decomp Icon

GD Web Decomp

Raw Source