// // GameObject::addColorSpriteToSelf from 0x1005bdf80 to 0x1005be06b (235 bytes) // // 2 xrefs: // > EditorUI::spriteFromObjectString @ 0x1000344b4 // > GameObject::addColorSpriteToParent @ 0x1005aa0bf // // 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 v1; // rdx _QWORD *v2; // rax cocos2d::CCSprite *m_colorSprite; // rbx float v4; // [rsp+0h] [rbp-20h] BYREF __int64 v5; // [rsp+8h] [rbp-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); v1 = 4294967196LL; if ( a1->m_colorZLayerRelated ) v1 = 100; ((void (__fastcall *)(GameObject *, cocos2d::CCSprite *, __int64))a1->addChild_0)(a1, a1->m_colorSprite, v1); ((void (__fastcall *)(cocos2d::CCSprite *, float))a1->m_colorSprite->setScale)(a1->m_colorSprite, 1.0); ((void (__fastcall *)(cocos2d::CCSprite *, double))a1->m_colorSprite->setRotation)(a1->m_colorSprite, 0.0); v2 = (_QWORD *)((__int64 (__fastcall *)(GameObject *))a1->getContentSize)(a1); sub_10028CFC0(&v5, v2); m_colorSprite = a1->m_colorSprite; sub_10028CBE0(&v4, *(float *)&v5 * 0.5, 0.5 * *((float *)&v5 + 1)); ((void (__fastcall *)(cocos2d::CCSprite *, float *))m_colorSprite->setPosition)(m_colorSprite, &v4); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source