// // GJBaseGameLayer::updateLegacyLayerCapacity from 0x858258 to 0x85833c (228 bytes) // // 2 xrefs: // > GJBaseGameLayer::updateLayerCapacity @ 0x86d5d8 // > @ 0x45f48 // // 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 GJBaseGameLayer::updateLegacyLayerCapacity(GJBaseGameLayer *a1, int a2, int a3, int a4, int a5) { signed int v5; // w21 signed int v6; // w20 cocos2d::CCSpriteBatchNode *m_gameLayerT1; // x0 unsigned int v9; // w23 unsigned int v10; // w22 if ( a3 < 100 ) v5 = 100; else v5 = a3; if ( a5 < 100 ) v6 = 100; else v6 = a5; m_gameLayerT1 = a1->m_gameLayerT1; if ( a2 < 100 ) a2 = 100; v9 = v6 >> 1; cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(m_gameLayerT1, a2); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1->m_gameBlendingLayerT1, v5); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1->m_game2LayerT1, 0x14u); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1->m_game2BlendingLayerT1, 0x14u); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1->m_game2LayerB1, 0x14u); if ( a4 < 100 ) v10 = 100; else v10 = a4; cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1->m_gameLayerB1, v10); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1->m_gameBlendingLayerB1, v6); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1->m_gameLayerB2, v10); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1->m_gameBlendingLayerB2, v6); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1->m_glowLayerT1, v5 >> 1); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1->m_glowLayerB1, v9); cocos2d::CCSpriteBatchNode::increaseAtlasCapacity(a1->m_glowLayerB2, v9); }
GD Web Decomp Icon

GD Web Decomp

Raw Source