// // cocos2d::CCAtlasNode::calculateMaxItems from 0x180001920 to 0x1800019bd (157 bytes) // // 3 xrefs: // > cocos2d::CCAtlasNode::initWithTexture @ 0x180001cf1 // > @ 0x1801438a8 // > @ 0x1801ad0c0 // // 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 cocos2d::CCAtlasNode::calculateMaxItems(cocos2d::CCAtlasNode *this) { __int64 v2; // rax cocos2d::CCTexture2D *v3; // rax const struct cocos2d::CCSize *ContentSizeInPixels; // rax float v5; // xmm1_4 float v6; // [rsp+30h] [rbp+8h] BYREF float v7; // [rsp+34h] [rbp+Ch] v2 = ((__int64 (__fastcall *)(cocos2d::CCTextureAtlas *))this->m_pTextureAtlas->getTexture)(this->m_pTextureAtlas); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v2 + 136LL))(v2, &v6); if ( this->m_bIgnoreContentScaleFactor ) { v3 = (cocos2d::CCTexture2D *)((__int64 (__fastcall *)(cocos2d::CCTextureAtlas *))this->m_pTextureAtlas->getTexture)(this->m_pTextureAtlas); ContentSizeInPixels = cocos2d::CCTexture2D::getContentSizeInPixels(v3); cocos2d::CCSize::operator=(&v6, ContentSizeInPixels); } v5 = v6; this->m_uItemsPerColumn = (int)(float)(v7 / (float)(int)this->m_uItemHeight); this->m_uItemsPerRow = (int)(float)(v5 / (float)(int)this->m_uItemWidth); }
GD Web Decomp Icon

GD Web Decomp

Raw Source