// // CharacterColorPage::toggleShip from 0xa244a8 to 0xa24568 (192 bytes) // // 3 xrefs: // > @ 0x33870 // > CharacterColorPage::init @ 0xa26010 // > @ 0x12298b0 // // 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; // x20 GameManager *v4; // x0 long double v5; // q0 int v6; // w21 IconType v7; // w2 int v8; // w1 GameManager *v9; // x0 long double v10; // [xsp+30h] [xbp+30h] v3 = (SimplePlayer *)((__int64 (__fastcall *)(cocos2d::CCObject *))a2->__vftable[13].~CCObject_0)(a2); if ( a2->getTag(a2) == 1 ) { v9 = GameManager::sharedState(); v6 = 8; LODWORD(v5) = 1065772646; v7 = Jetpack; v8 = v9->m_playerJetpack.random - v9->m_playerJetpack.seed; } else { v4 = GameManager::sharedState(); LODWORD(v5) = 1066611507; v6 = 1; v7 = Ship; v8 = v4->m_playerShip.random - v4->m_playerShip.seed; } v10 = v5; SimplePlayer::updatePlayerFrame(v3, v8, v7); v3->setScale(v3, v10); a2->setTag(a2, v6); }