// // CharacterColorPage::toggleShip from 0x100129654 to 0x100129718 (196 bytes) // // 1 xrefs: // > CharacterColorPage::init @ 0x100128fe0 // // 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 __fastcall CharacterColorPage::toggleShip(CharacterColorPage *a1, cocos2d::CCObject *a2) { SimplePlayer *v3; // x20 int v4; // w21 GameManager *v5; // x0 int v6; // w1 __int64 v7; // x21 float v8; // s8 v3 = (SimplePlayer *)((__int64 (__fastcall *)(cocos2d::CCObject *))a2->__vftable[13].~CCObject_0)(a2); v4 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2); v5 = GameManager::sharedState(); if ( v4 == 1 ) { v6 = v5->m_playerJetpack.random - v5->m_playerJetpack.seed; v7 = 8; v8 = 1.05; } else { v6 = v5->m_playerShip.random - v5->m_playerShip.seed; v7 = 1; v8 = 1.15; } SimplePlayer::updatePlayerFrame(v3, v6, (IconType)v7); ((void (__fastcall *)(SimplePlayer *, float))v3->setScale)(v3, v8); ((void (__fastcall *)(cocos2d::CCObject *, __int64))a2->setTag)(a2, v7); }
GD Web Decomp Icon

GD Web Decomp

Raw Source