// // GameObject::addColorSpriteToSelf from 0x355afc to 0x355bbc (192 bytes) // // 2 xrefs: // > GameObject::addColorSpriteToParent @ 0x3562cc // > EditorUI::spriteFromObjectString @ 0x387e3a // // 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 GameObject::addColorSpriteToSelf(GameObject *a1) { cocos2d::CCSprite *m_colorSprite; // r0 int v3; // r2 const cocos2d::CCSize *v4; // r0 cocos2d::CCSprite *v5; // r6 void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r7 cocos2d::CCSize v7; // [sp+4h] [bp-18h] BYREF cocos2d::CCPoint v8; // [sp+Ch] [bp-10h] BYREF if ( a1 != a1->m_colorSprite->getParent(a1->m_colorSprite) ) { m_colorSprite = a1->m_colorSprite; a1->m_colorSpriteLocked = 1; m_colorSprite->removeFromParentAndCleanup(m_colorSprite, 0); if ( a1->m_colorZLayerRelated ) v3 = 100; else v3 = -100; a1->addChild_0(a1, a1->m_colorSprite, v3); ((void (__fastcall *)(cocos2d::CCSprite *, int))a1->m_colorSprite->setScale)(a1->m_colorSprite, 1065353216); ((void (__fastcall *)(cocos2d::CCSprite *, _DWORD))a1->m_colorSprite->setRotation)(a1->m_colorSprite, 0); v4 = a1->getContentSize(a1); cocos2d::CCSize::CCSize(&v7, v4); v5 = a1->m_colorSprite; setPosition = v5->setPosition; cocos2d::CCPoint::CCPoint(&v8, v7.width * 0.5, v7.height * 0.5); setPosition(v5, &v8); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source