// // SetupSmartBlockLayer::onAllowFlipping from 0x1004e7450 to 0x1004e74c6 (118 bytes) // // 2 xrefs: // > SetupSmartBlockLayer::init @ 0x1004e65f4 // > SetupSmartBlockLayer::init @ 0x1004e66f7 // // 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 SetupSmartBlockLayer::onAllowFlipping(SetupSmartBlockLayer *a1, cocos2d::CCObject *a2) { GameLevelManager *v2; // rax GJSmartTemplate *ActiveSmartTemplate; // r14 bool v4; // al bool v5; // al if ( a2 ) { v2 = GameLevelManager::sharedState(); ActiveSmartTemplate = GameLevelManager::getActiveSmartTemplate(v2); if ( ((unsigned int (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2) == 3 ) { v4 = !a1->m_allowFlipX; a1->m_allowFlipX = v4; if ( ActiveSmartTemplate ) ActiveSmartTemplate->m_allowFlipX = v4; } else { v5 = !a1->m_allowFlipY; a1->m_allowFlipY = v5; if ( ActiveSmartTemplate ) ActiveSmartTemplate->m_allowFlipY = v5; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source