// // GameObject::addColorSpriteToSelf from 0x10025cec4 to 0x10025cfb4 (240 bytes) // // 2 xrefs: // > GameObject::addColorSpriteToParent @ 0x1002563a4 // > EditorUI::spriteFromObjectString @ 0x1003eab84 // // 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 GameObject::addColorSpriteToSelf(GameObject *a1) { __int64 v2; // x2 double *v3; // x0 __n128 v4; // q0 cocos2d::CCSprite *m_colorSprite; // x19 __n128 v6; // q1 int v7; // [xsp+0h] [xbp-20h] BYREF __int64 v8; // [xsp+8h] [xbp-18h] BYREF if ( (GameObject *)((__int64 (__fastcall *)(cocos2d::CCSprite *))a1->m_colorSprite->getParent)(a1->m_colorSprite) != a1 ) { a1->m_colorSpriteLocked = 1; ((void (__fastcall *)(cocos2d::CCSprite *, _QWORD))a1->m_colorSprite->removeFromParentAndCleanup)( a1->m_colorSprite, 0); if ( a1->m_colorZLayerRelated ) v2 = 100; else v2 = 4294967196LL; ((void (__fastcall *)(GameObject *, cocos2d::CCSprite *, __int64))a1->addChild_0)(a1, a1->m_colorSprite, v2); ((void (__fastcall *)(cocos2d::CCSprite *, float))a1->m_colorSprite->setScale)(a1->m_colorSprite, 1.0); ((void (__fastcall *)(cocos2d::CCSprite *, float))a1->m_colorSprite->setRotation)(a1->m_colorSprite, 0.0); v3 = (double *)((__int64 (__fastcall *)(GameObject *))a1->getContentSize)(a1); v4.n128_f64[0] = sub_100022AFC(&v8, v3); m_colorSprite = a1->m_colorSprite; v4.n128_f32[0] = *(float *)&v8 * 0.5; v6.n128_f32[0] = *((float *)&v8 + 1) * 0.5; sub_100022980(v4, v6, &v7); ((void (__fastcall *)(cocos2d::CCSprite *, int *))m_colorSprite->setPosition)(m_colorSprite, &v7); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source