// // SetupSmartBlockLayer::onAllowFlipping from 0x9dbd80 to 0x9dbe08 (136 bytes) // // 4 xrefs: // > @ 0xb8fc8 // > SetupSmartBlockLayer::init @ 0x9dd41c // > SetupSmartBlockLayer::init @ 0x9dd4f4 // > @ 0x122e668 // // 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 SetupSmartBlockLayer::onAllowFlipping(SetupSmartBlockLayer *a1, cocos2d::CCObject *a2) { GameLevelManager *v4; // x0 GJSmartTemplate *ActiveSmartTemplate; // x21 bool v6; // w0 bool v7; // w0 if ( a2 ) { v4 = GameLevelManager::sharedState(); ActiveSmartTemplate = GameLevelManager::getActiveSmartTemplate(v4); if ( a2->getTag(a2) == 3 ) { v7 = !a1->m_allowFlipX; a1->m_allowFlipX = v7; if ( ActiveSmartTemplate ) ActiveSmartTemplate->m_allowFlipX = v7; } else { v6 = !a1->m_allowFlipY; a1->m_allowFlipY = v6; if ( ActiveSmartTemplate ) ActiveSmartTemplate->m_allowFlipY = v6; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source