// // SpriteDescription::initDescription_1 from 0x10056cbb0 to 0x10056cde7 (567 bytes) // // 2 xrefs: // > CCAnimateFrameCache::addDict_1 @ 0x10056c589 // > SpriteDescription::createDescription_1 @ 0x10056ca55 // // 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_1(SpriteDescription *a1, DS_Dictionary *a2) { double v3; // xmm0_8 double v4; // xmm0_8 char *v5; // r15 char *v6; // r15 char *v7; // r15 char v8; // r13 char *v9; // r12 char *v10; // r15 char *v11; // rdi int v12; // eax cocos2d::CCSpriteFrameCache *v13; // rax cocos2d::CCSpriteFrame *v14; // rax cocos2d::CCSpriteFrame *m_texture; // rbx std::string __str; // [rsp+0h] [rbp-60h] BYREF char v18[16]; // [rsp+20h] [rbp-40h] BYREF char *v19; // [rsp+30h] [rbp-30h] DS_Dictionary::getVec2ForKey((DS_Dictionary *)v18, (const char *)a2); sub_10028CC90(&a1->m_position, (double *)v18); DS_Dictionary::getVec2ForKey((DS_Dictionary *)v18, (const char *)a2); sub_10028CC90(&a1->m_flipped, (double *)v18); DS_Dictionary::getVec2ForKey((DS_Dictionary *)v18, (const char *)a2); v3 = sub_10028CC90(&a1->m_scale, (double *)v18); DS_Dictionary::getStringForKey(v18, (__int64)a2, "rotation", v3); if ( (v18[0] & 1) != 0 ) { v5 = v19; v4 = atof(v19); *(float *)&v4 = v4; a1->m_rotation = *(float *)&v4; operator delete(v5); } else { v4 = atof(&v18[1]); *(float *)&v4 = v4; a1->m_rotation = *(float *)&v4; } DS_Dictionary::getStringForKey(v18, (__int64)a2, "zValue", v4); if ( (v18[0] & 1) != 0 ) { v6 = v19; a1->m_zValue = atoi(v19); operator delete(v6); } else { a1->m_zValue = atoi(&v18[1]); } DS_Dictionary::getStringForKey(v18, (__int64)a2, "tag", v4); if ( (v18[0] & 1) != 0 ) { v7 = v19; a1->m_tag = atoi(v19); operator delete(v7); } else { a1->m_tag = atoi(&v18[1]); } DS_Dictionary::getStringForKey(v18, (__int64)a2, "usesCustomTag", v4); v8 = v18[0]; v9 = v19; v10 = &v18[1]; v11 = v19; if ( (v18[0] & 1) == 0 ) v11 = &v18[1]; v12 = atoi(v11); a1->m_usesCustomTag = v12 != 0; if ( (v8 & 1) != 0 ) { operator delete(v9); if ( !a1->m_usesCustomTag ) return 1; } else if ( !v12 ) { return 1; } DS_Dictionary::getStringForKey(v18, (__int64)a2, "texture", v4); v13 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); if ( (v18[0] & 1) != 0 ) v10 = v19; v14 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v13, v10); a1->m_texture = v14; cocos2d::CCObject::retain(v14); m_texture = a1->m_texture; if ( (v18[0] & 1) != 0 ) { sub_100006B70(&__str, v19, *(unsigned __int64 *)&v18[8], v4); } else { __str.__r_.__value_.__r.__words[2] = (std::string::size_type)v19; *(_OWORD *)&__str.__r_.__value_.__l.0 = *(_OWORD *)v18; } std::string::operator=((std::string *)&m_texture->m_strFrameName, &__str); if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 ) operator delete(__str.__r_.__value_.__l.__data_); if ( (v18[0] & 1) != 0 ) operator delete(v19); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source