// // CCAnimatedSprite::initWithType from 0x2e4088 to 0x2e4156 (206 bytes) // // 3 xrefs: // > CCAnimatedSprite::createWithType @ 0x2e41d0 // > GJRobotSprite::init @ 0x4b84b6 // > AnimatedShopKeeper::init @ 0x4e2c34 // // 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 // bool CCAnimatedSprite::initWithType(CCAnimatedSprite *a1, const char *a2, cocos2d::CCTexture2D *a3, bool a4) { cocos2d::CCTexture2D *v7; // r7 ObjectManager *v8; // r0 cocos2d::CCDictionary *Definition; // r5 cocos2d::CCString *v10; // r0 char *CString; // r0 cocos2d::CCTextureCache *v12; // r0 int v13; // r4 char *v15; // [sp+10h] [bp-18h] BYREF cocos2d::CCRect v16; // [sp+14h] [bp-14h] BYREF v7 = a3; if ( !a3 ) { v8 = ObjectManager::instance(); Definition = ObjectManager::getDefinition(v8, a2); sub_776584((int)&v16, "spriteSheet"); v10 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(Definition, (const std::string *)&v16); CString = (char *)cocos2d::CCString::getCString(v10); sub_776584((int)&v15, CString); sub_774008(&v16); sub_774544((int)&v15, ".png"); v12 = cocos2d::CCTextureCache::sharedTextureCache(); v7 = cocos2d::CCTextureCache::addImage(v12, v15, 0); sub_774008(&v15); } cocos2d::CCRect::CCRect(&v16, 0.0, 0.0, 0.0, 0.0); v13 = cocos2d::CCSprite::initWithTexture(a1, v7, &v16); if ( v13 ) { a1->m_bDontDraw = 1; sub_7753D4((int)&a1->m_unkString1, (char *)&unk_939830); CCAnimatedSprite::loadType(a1, a2, v7, a4); } return v13; }
GD Web Decomp Icon

GD Web Decomp

Raw Source