// // GJDifficultySprite::create from 0x1002b6a30 to 0x1002b6aec (188 bytes) // // 6 xrefs: // > LevelCell::loadCustomLevelCell @ 0x1002506e6 // > RateStarsLayer::init @ 0x10028c142 // > LevelInfoLayer::setupLevelInfo @ 0x1002c082a // > GJRateLevelLayer::init @ 0x100505f08 // > StarInfoPopup::init @ 0x1007c2256 // > StarInfoPopup::init @ 0x1007c23b3 // // 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 // // local variable allocation has failed, the output may be wrong! GJDifficultySprite *__fastcall GJDifficultySprite::create(int a1, GJDifficultyName a2) { GJDifficultySprite *v2; // rbx const char *data; // rsi bool v4; // r14 std::string v6; // [rsp+0h] [rbp-30h] BYREF v2 = (GJDifficultySprite *)operator new(0x258u); cocos2d::CCSprite::CCSprite((__int64)v2, *(__int64 *)&a2); v2->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (GJDifficultySprite_vtbl *)off_100904AA0; v2->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)off_100904F78; v2->cocos2d::CCSprite::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)off_100904FF8; v2->m_featureState = 0; GJDifficultySprite::getDifficultyFrame(&v6); if ( (*(_BYTE *)&v6.__r_.__value_.__s.0 & 1) != 0 ) data = v6.__r_.__value_.__l.__data_; else data = v6.__r_.__value_.__s.__data_; v4 = cocos2d::CCSprite::initWithSpriteFrameName(v2, data); if ( (*(_BYTE *)&v6.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v6.__r_.__value_.__l.__data_); if ( v4 ) { cocos2d::CCObject::autorelease(v2); } else { ((void (__fastcall *)(GJDifficultySprite *))v2->~GJDifficultySprite_0)(v2); return nullptr; } return v2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source