// // cocos2d::CCAtlasNode::calculateMaxItems from 0x5bc684 to 0x5bc704 (128 bytes) // // 1 xrefs: // > cocos2d::CCAtlasNode::initWithTexture @ 0x5bc7ae // // 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 cocos2d::CCAtlasNode::calculateMaxItems(cocos2d::CCAtlasNode *a1) { cocos2d::CCTexture2D *v2; // r0 cocos2d::CCTexture2D *v3; // r0 const cocos2d::CCSize *ContentSizeInPixels; // r0 float v5[2]; // [sp+4h] [bp-Ch] BYREF v2 = a1->m_pTextureAtlas->getTexture(a1->m_pTextureAtlas); v2->getContentSize((cocos2d::CCSize *)v5, v2); if ( a1->m_bIgnoreContentScaleFactor ) { v3 = a1->m_pTextureAtlas->getTexture(a1->m_pTextureAtlas); ContentSizeInPixels = cocos2d::CCTexture2D::getContentSizeInPixels(v3); cocos2d::CCSize::operator=(v5, ContentSizeInPixels); } a1->m_uItemsPerColumn = (int)(float)(v5[1] / (float)a1->m_uItemHeight); a1->m_uItemsPerRow = (int)(float)(v5[0] / (float)a1->m_uItemWidth); }
GD Web Decomp Icon

GD Web Decomp

Raw Source