// // cocos2d::CCAtlasNode::calculateMaxItems from 0xaca268 to 0xaca338 (208 bytes) // // 2 xrefs: // > cocos2d::CCAtlasNode::initWithTexture @ 0xaca450 // > @ 0x80358 // // 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; // x0 cocos2d::CCTexture2D *v3; // x0 float v4; // s0 __int64 v5; // [xsp+30h] [xbp+30h] BYREF v2 = a1->m_pTextureAtlas->getTexture(a1->m_pTextureAtlas); v2->getContentSize((cocos2d::CCTexture2D *)&v5); if ( a1->m_bIgnoreContentScaleFactor ) { v3 = a1->m_pTextureAtlas->getTexture(a1->m_pTextureAtlas); cocos2d::CCTexture2D::getContentSizeInPixels(v3); cocos2d::CCSize::operator=(&v5); } v4 = *(float *)&v5 / (float)a1->m_uItemWidth; a1->m_uItemsPerColumn = (int)(float)(*((float *)&v5 + 1) / (float)a1->m_uItemHeight); a1->m_uItemsPerRow = (int)v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source