// // CCSpriteGrayscale::createWithTexture from 0x1005f0f70 to 0x1005f1025 (181 bytes) // // 0 xrefs: // // 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 // CCSpriteGrayscale *__fastcall CCSpriteGrayscale::createWithTexture( cocos2d::CCTexture2D *a1, const cocos2d::CCRect *a2, bool a3) { _QWORD *v4; // rax _QWORD *v5; // rbx v4 = operator new(0x298u, &std::nothrow); if ( !v4 ) return nullptr; v5 = v4; __bzero(v4, 664); cocos2d::CCSprite::CCSprite((__int64)v5, 664); *v5 = off_10097A760; v5[40] = off_10097AC50; v5[43] = off_10097ACD0; if ( !cocos2d::CCSprite::initWithTexture((cocos2d::CCSprite *)v5, a1, a2, a3) ) { (*(void (__fastcall **)(_QWORD *))(*v5 + 16LL))(v5); return nullptr; } *(_OWORD *)((char *)v5 + 596) = xmmword_100821A30; CCSpriteWithHue::initShader((CCSpriteWithHue *)v5); cocos2d::CCObject::autorelease((cocos2d::CCObject *)v5); return (CCSpriteGrayscale *)v5; }