// // SpriteDescription::initDescription from 0x2e4c90 to 0x2e4e62 (466 bytes) // // 1 xrefs: // > SpriteDescription::createDescription @ 0x2e4e9c // // 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 SpriteDescription::initDescription(SpriteDescription *a1, DS_Dictionary *a2) { cocos2d::CCPoint *p_m_position; // r10 cocos2d::CCString *v5; // r0 const char *CString; // r0 cocos2d::CCString *v7; // r0 const char *v8; // r0 cocos2d::CCString *v9; // r0 const char *v10; // r0 cocos2d::CCString *v11; // r0 cocos2d::CCString *v12; // r0 cocos2d::CCString *v13; // r0 cocos2d::CCString *v14; // r0 cocos2d::CCString *v15; // r0 char *v16; // r0 cocos2d::CCSpriteFrameCache *v17; // r0 cocos2d::CCSpriteFrame *v18; // r0 cocos2d::CCSpriteFrame *m_texture; // r6 char *v21; // [sp+8h] [bp-10h] BYREF cocos2d::CCPoint v22; // [sp+Ch] [bp-Ch] BYREF p_m_position = &a1->m_position; sub_776584((int)&v21, "position"); v5 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey((cocos2d::CCDictionary *)a2, (const std::string *)&v21); CString = cocos2d::CCString::getCString(v5); cocos2d::CCPointFromString(&v22, CString); cocos2d::CCPoint::operator=(p_m_position, &v22); sub_774008(&v21); sub_776584((int)&v21, "flipped"); v7 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey((cocos2d::CCDictionary *)a2, (const std::string *)&v21); v8 = cocos2d::CCString::getCString(v7); cocos2d::CCPointFromString(&v22, v8); cocos2d::CCPoint::operator=(&a1->m_flipped, &v22); sub_774008(&v21); sub_776584((int)&v21, "scale"); v9 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey((cocos2d::CCDictionary *)a2, (const std::string *)&v21); v10 = cocos2d::CCString::getCString(v9); cocos2d::CCPointFromString(&v22, v10); cocos2d::CCPoint::operator=(&a1->m_scale, &v22); sub_774008(&v21); sub_776584((int)&v22, "rotation"); v11 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey((cocos2d::CCDictionary *)a2, (const std::string *)&v22); a1->m_rotation = cocos2d::CCString::floatValue(v11); sub_774008(&v22); sub_776584((int)&v22, "zValue"); v12 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey((cocos2d::CCDictionary *)a2, (const std::string *)&v22); a1->m_zValue = cocos2d::CCString::intValue(v12); sub_774008(&v22); sub_776584((int)&v22, "tag"); v13 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey((cocos2d::CCDictionary *)a2, (const std::string *)&v22); a1->m_tag = cocos2d::CCString::intValue(v13); sub_774008(&v22); sub_776584((int)&v22, "usesCustomTag"); v14 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey((cocos2d::CCDictionary *)a2, (const std::string *)&v22); a1->m_usesCustomTag = cocos2d::CCString::boolValue(v14); sub_774008(&v22); if ( a1->m_usesCustomTag ) { sub_776584((int)&v22, "texture"); v15 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey( (cocos2d::CCDictionary *)a2, (const std::string *)&v22); v16 = (char *)cocos2d::CCString::getCString(v15); sub_776584((int)&v21, v16); sub_774008(&v22); v17 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v18 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v17, v21); a1->m_texture = v18; cocos2d::CCObject::retain(v18); m_texture = a1->m_texture; sub_775C20(&v22, &v21); sub_775D40(&m_texture->m_strFrameName, &v22); sub_774008(&v22); sub_774008(&v21); } return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source