// // GJGroundLayer::createLine from 0x14027ea50 to 0x14027ec35 (485 bytes) // // 2 xrefs: // > GJGroundLayer::init @ 0x14027e300 // > @ 0x1406d1250 // // 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 GJGroundLayer::createLine(GJGroundLayer *a1, int a2) { cocos2d::CCSprite *m_lineSprite; // rcx int v4; // esi int v6; // eax cocos2d::CCDirector *v7; // rax cocos2d::CCString *v8; // rax const char *CString; // rax cocos2d::CCSprite *v10; // rax GJGroundLayer_vtbl *v11; // r9 float v12; // xmm0_4 cocos2d::CCSprite_vtbl *v13; // rbx __int64 v14; // rax float v15; // xmm0_4 cocos2d::CCSprite_vtbl *v16; // rbx const cocos2d::CCPoint *v17; // rax float v18; // [rsp+50h] [rbp+18h] m_lineSprite = a1->m_lineSprite; v4 = 0; if ( m_lineSprite ) { m_lineSprite->removeFromParent(m_lineSprite); a1->m_lineSprite = nullptr; } v6 = 1; if ( a2 >= 1 ) v6 = a2; if ( v6 >= 3 ) a1->m_lineType = 3; else a1->m_lineType = v6; v7 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(m_lineSprite); cocos2d::CCDirector::getWinSize(v7); LOBYTE(v4) = a1->m_lineType != 1; v8 = cocos2d::CCString::createWithFormat("floorLine_%02d_001.png", v4 + 1); CString = cocos2d::CCString::getCString(v8); v10 = cocos2d::CCSprite::createWithSpriteFrameName(CString); v11 = a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_lineSprite = v10; v12 = ((float (__fastcall *)(GJGroundLayer *, cocos2d::CCSprite *, __int64))v11->addChild_0)(a1, v10, 5); v13 = a1->m_lineSprite->__vftable; cocos2d::CCPoint::CCPoint(v12, v18 * 0.5); v15 = ((float (__fastcall *)(cocos2d::CCSprite *, __int64))v13->setPosition_0)(a1->m_lineSprite, v14); v16 = a1->m_lineSprite->__vftable; cocos2d::CCPoint::CCPoint(v15, 0.5); v16->setAnchorPoint(a1->m_lineSprite, v17); a1->m_lineSprite->setTag(a1->m_lineSprite, 2); if ( a1->m_blendLine ) ((void (__fastcall *)(cocos2d::CCTextureProtocol *, __int64))a1->m_lineSprite->setBlendFunc)( &a1->m_lineSprite->cocos2d::CCTextureProtocol, 0x100000302LL); if ( a1->m_lineType > 1 ) ((void (*)(void))a1->m_lineSprite->setScaleX)(); if ( a1->m_lineType == 3 ) ((void (__fastcall *)(cocos2d::CCSprite *))a1->m_lineSprite->setScaleY)(a1->m_lineSprite); }
GD Web Decomp Icon

GD Web Decomp

Raw Source