// // CCSpriteWithHue::createWithSpriteFrameName from 0x14004c5b0 to 0x14004c6a7 (247 bytes) // // 5 xrefs: // > GJShopLayer::init @ 0x1403b065d // > GJShopLayer::init @ 0x1403b0a67 // > RewardUnlockLayer::init @ 0x140563b2c // > SecretLayer5::init @ 0x140589ec6 // > @ 0x140910070 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:25:33 +0000 // // Hidden C++ exception states: #wind=1 cocos2d::CCSprite *__fastcall CCSpriteWithHue::createWithSpriteFrameName(__int64 a1) { const char *v1; // rbx cocos2d::CCSpriteFrameCache *v2; // rax struct cocos2d::CCSpriteFrame *v3; // rdi cocos2d::CCSprite *v4; // rax cocos2d::CCSprite *v5; // rbx __int64 (__fastcall *v6)(cocos2d::CCSprite *, struct cocos2d::CCSpriteFrame *); // r8 v1 = (const char *)a1; if ( *(_QWORD *)(a1 + 24) > 0xFu ) v1 = *(const char **)a1; v2 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v3 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v2, v1); v4 = (cocos2d::CCSprite *)operator new(0x298u, (const struct std::nothrow_t *)&unk_1406ED620); v5 = v4; if ( v4 ) { memset(v4, 0, 0x298u); cocos2d::CCSprite::CCSprite(v5); *(_QWORD *)v5 = &CCSpriteWithHue::`vftable'; *((_QWORD *)v5 + 40) = &CCSpriteWithHue::`vftable'; *((_QWORD *)v5 + 43) = &CCSpriteWithHue::`vftable'; } else { v5 = nullptr; } if ( v5 ) { if ( v3 ) { v6 = *(__int64 (__fastcall **)(cocos2d::CCSprite *, struct cocos2d::CCSpriteFrame *))(*(_QWORD *)v5 + 912LL); if ( (char *)v6 == (char *)CCSpriteWithHue::initWithSpriteFrame ? CCSpriteWithHue::initWithSpriteFrame(v5, v3) : (unsigned __int8)v6(v5, v3) ) { cocos2d::CCObject::autorelease(v5); return v5; } } (*(void (__fastcall **)(cocos2d::CCSprite *, __int64))(*(_QWORD *)v5 + 8LL))(v5, 1); } return nullptr; }
GD Web Decomp Icon

GD Web Decomp

Raw Source