// // SpriteDescription::initDescription from 0x1001b0754 to 0x1001b09e4 (656 bytes) // // 1 xrefs: // > SpriteDescription::createDescription @ 0x1001b0688 // // 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 __fastcall SpriteDescription::initDescription(SpriteDescription *a1, cocos2d::CCDictionary *a2) { cocos2d::CCString *v4; // x0 const char *CString; // x0 cocos2d::CCString *v6; // x0 const char *v7; // x0 cocos2d::CCString *v8; // x0 const char *v9; // x0 cocos2d::CCString *v10; // x0 cocos2d::CCString *v11; // x0 cocos2d::CCString *v12; // x0 cocos2d::CCString *v13; // x0 _BOOL4 v14; // w0 cocos2d::CCString *v15; // x0 char *v16; // x0 cocos2d::CCSpriteFrameCache *v17; // x0 std::string *v18; // x1 cocos2d::CCSpriteFrame *v19; // x0 cocos2d::CCSpriteFrame *m_texture; // x19 std::string v22; // [xsp+0h] [xbp-60h] BYREF void *__p[2]; // [xsp+20h] [xbp-40h] BYREF char v24; // [xsp+37h] [xbp-29h] std::string v25; // [xsp+38h] [xbp-28h] BYREF sub_100009900(&v25, "position"); v4 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey_1(a2, &v25); CString = cocos2d::CCString::getCString(v4); cocos2d::CCPointFromString(CString); sub_1000229D0(&a1->m_position, (double *)__p); if ( SHIBYTE(v25.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v25.__r_.__value_.__l.__data_); sub_100009900(&v25, "flipped"); v6 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey_1(a2, &v25); v7 = cocos2d::CCString::getCString(v6); cocos2d::CCPointFromString(v7); sub_1000229D0(&a1->m_flipped, (double *)__p); if ( SHIBYTE(v25.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v25.__r_.__value_.__l.__data_); sub_100009900(&v25, "scale"); v8 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey_1(a2, &v25); v9 = cocos2d::CCString::getCString(v8); cocos2d::CCPointFromString(v9); sub_1000229D0(&a1->m_scale, (double *)__p); if ( SHIBYTE(v25.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v25.__r_.__value_.__l.__data_); sub_100009900(&v25, "rotation"); v10 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey_1(a2, &v25); a1->m_rotation = cocos2d::CCString::floatValue(v10); if ( SHIBYTE(v25.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v25.__r_.__value_.__l.__data_); sub_100009900(&v25, "zValue"); v11 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey_1(a2, &v25); a1->m_zValue = cocos2d::CCString::intValue(v11); if ( SHIBYTE(v25.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v25.__r_.__value_.__l.__data_); sub_100009900(&v25, "tag"); v12 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey_1(a2, &v25); a1->m_tag = cocos2d::CCString::intValue(v12); if ( SHIBYTE(v25.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v25.__r_.__value_.__l.__data_); sub_100009900(&v25, "usesCustomTag"); v13 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey_1(a2, &v25); v14 = cocos2d::CCString::boolValue(v13); a1->m_usesCustomTag = v14; if ( SHIBYTE(v25.__r_.__value_.__r.__words[2]) < 0 ) { operator delete(v25.__r_.__value_.__l.__data_); if ( !a1->m_usesCustomTag ) return 1; } else if ( !v14 ) { return 1; } sub_100009900(__p, "texture"); v15 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey_1(a2, __p); v16 = (char *)cocos2d::CCString::getCString(v15); sub_100009900(&v25, v16); if ( v24 < 0 ) operator delete(__p[0]); v17 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); if ( (v25.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v18 = &v25; else v18 = (std::string *)v25.__r_.__value_.__r.__words[0]; v19 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v17, (const char *)v18); a1->m_texture = v19; cocos2d::CCObject::retain(v19); m_texture = a1->m_texture; if ( SHIBYTE(v25.__r_.__value_.__r.__words[2]) < 0 ) sub_1000097D0(&v22, v25.__r_.__value_.__l.__data_, v25.__r_.__value_.__l.__size_); else v22 = v25; std::string::operator=((std::string *)&m_texture->m_strFrameName, &v22); if ( SHIBYTE(v22.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v22.__r_.__value_.__l.__data_); if ( SHIBYTE(v25.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v25.__r_.__value_.__l.__data_); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source