// // cocos2d::CCShaderCache::sharedShaderCache from 0x1800895e0 to 0x18008966d (141 bytes) // // 19 xrefs: // > cocos2d::CCAtlasNode::initWithTexture @ 0x180001cff // > cocos2d::ccDrawInit @ 0x180011ded // > cocos2d::CCDrawNode::init @ 0x1800152e4 // > cocos2d::CCGridBase::initWithSize @ 0x18002369f // > cocos2d::CCLabelTTF::init @ 0x18004e3ad // > cocos2d::CCLabelTTF::initWithString @ 0x18004e505 // > cocos2d::CCLabelTTF::initWithStringAndTextDefinition @ 0x18004e5f9 // > cocos2d::CCLayerColor::initWithColor @ 0x1800501e7 // > cocos2d::CCClippingNode::visit @ 0x18005c7c8 // > cocos2d::CCMotionStreak::initWithFade @ 0x18005d008 // > cocos2d::CCProgressTimer::initWithSprite @ 0x18005df47 // > cocos2d::CCParticleBatchNode::initWithTexture @ 0x18006178c // > cocos2d::CCParticleSystemQuad::initWithTotalParticles @ 0x18006aa53 // > cocos2d::CCSprite::initWithTexture @ 0x18008bdfa // > cocos2d::CCSpriteBatchNode::initWithTexture @ 0x18008e767 // > cocos2d::CCTexture2D::initWithData @ 0x1800a58bf // > cocos2d::CCTMXLayer::parseInternalProperties @ 0x1800ac697 // > @ 0x1801438a8 // > @ 0x1801b594c // // 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 // // Hidden C++ exception states: #wind=2 struct cocos2d::CCShaderCache *__fastcall cocos2d::CCShaderCache::sharedShaderCache() { struct cocos2d::CCShaderCache *result; // rax cocos2d::CCObject *v1; // rax cocos2d::CCShaderCache *v2; // rbx cocos2d::CCDictionary *v3; // rdi cocos2d::CCDictionary *v4; // rax result = (struct cocos2d::CCShaderCache *)qword_1801A87B0; if ( !qword_1801A87B0 ) { v1 = (cocos2d::CCObject *)operator new(0x40u); v2 = (cocos2d::CCShaderCache *)v1; if ( v1 ) { cocos2d::CCObject::CCObject(v1); v2->__vftable = (cocos2d::CCShaderCache_vtbl *)&cocos2d::CCShaderCache::`vftable'; v3 = nullptr; v2[1].__vftable = nullptr; } else { v3 = nullptr; v2 = nullptr; } qword_1801A87B0 = v2; v4 = (cocos2d::CCDictionary *)operator new(0x48u); if ( v4 ) v3 = cocos2d::CCDictionary::CCDictionary(v4); v2[1].__vftable = (cocos2d::CCShaderCache_vtbl *)v3; cocos2d::CCShaderCache::loadDefaultShaders(v2); return (struct cocos2d::CCShaderCache *)qword_1801A87B0; } return result; }