// // cocos2d::CCSpriteFrame::initWithTexture from 0x10024e088 to 0x10024e1e8 (352 bytes) // // 4 xrefs: // > cocos2d::CCSpriteFrame::createWithTexture @ 0x10024e040 // > cocos2d::CCSpriteFrameCache::addSpriteFramesWithDictionary @ 0x1003bc400 // > cocos2d::CCSpriteFrameCache::addSpriteFramesWithDictionary @ 0x1003bc60c // > cocos2d::CCSpriteFrameCache::addSpriteFramesWithDictionary @ 0x1003bc720 // // 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 // bool __fastcall cocos2d::CCSpriteFrame::initWithTexture( cocos2d::CCSpriteFrame *a1, cocos2d::CCTexture2D *a2, const cocos2d::CCRect *a3, bool a4, const cocos2d::CCPoint *a5, const cocos2d::CCSize *a6) { float x; // s8 cocos2d::CCDirector *v12; // x0 float v13; // s0 float y; // s9 float v15; // s8 cocos2d::CCDirector *v16; // x0 float v17; // s0 float width; // s10 float v19; // s9 cocos2d::CCDirector *v20; // x0 float v21; // s0 float height; // s11 float v23; // s10 cocos2d::CCDirector *v24; // x0 float v25; // s0 float v26; // s8 cocos2d::CCDirector *v27; // x0 float v28; // s0 float v29; // s9 float v30; // s8 cocos2d::CCDirector *v31; // x0 __n128 v32; // q1 __n128 v33; // q0 float v34; // s8 cocos2d::CCDirector *v35; // x0 float v36; // s0 float v37; // s9 float v38; // s8 cocos2d::CCDirector *v39; // x0 float v40; // s0 double v42[2]; // [xsp+0h] [xbp-60h] BYREF a1->m_pobTexture = a2; if ( a2 ) cocos2d::CCObject::retain(a2); sub_100022BB0(&a1->m_obRectInPixels.origin, (__int64)a3); x = a3->origin.x; v12 = cocos2d::CCDirector::sharedDirector(); v13 = sub_1001765E4((__int64)v12); y = a3->origin.y; v15 = x / v13; v16 = cocos2d::CCDirector::sharedDirector(); v17 = sub_1001765E4((__int64)v16); width = a3->size.width; v19 = y / v17; v20 = cocos2d::CCDirector::sharedDirector(); v21 = sub_1001765E4((__int64)v20); height = a3->size.height; v23 = width / v21; v24 = cocos2d::CCDirector::sharedDirector(); v25 = sub_1001765E4((__int64)v24); sub_100022990((float *)v42, v15, v19, v23, height / v25); sub_100022BB0(&a1->m_obRect.origin, (__int64)v42); sub_1000229D0(&a1->m_obOffsetInPixels, (double *)a5); v26 = a1->m_obOffsetInPixels.x; v27 = cocos2d::CCDirector::sharedDirector(); v28 = sub_1001765E4((__int64)v27); v29 = a1->m_obOffsetInPixels.y; v30 = v26 / v28; v31 = cocos2d::CCDirector::sharedDirector(); v32.n128_f32[0] = v29 / sub_1001765E4((__int64)v31); v33.n128_f32[0] = v30; sub_100022980(v33, v32, v42); sub_1000229D0(&a1->m_obOffset, v42); sub_100022B14(&a1->m_obOriginalSizeInPixels, (double *)a6); v34 = a1->m_obOriginalSizeInPixels.width; v35 = cocos2d::CCDirector::sharedDirector(); v36 = sub_1001765E4((__int64)v35); v37 = a1->m_obOriginalSizeInPixels.height; v38 = v34 / v36; v39 = cocos2d::CCDirector::sharedDirector(); v40 = sub_1001765E4((__int64)v39); sub_100022988((float *)v42, v38, v37 / v40); sub_100022B14(&a1->m_obOriginalSize, v42); a1->m_bRotated = a4; return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source