// // SpriteDescription::initDescription from 0x3c413c to 0x3c42d8 (412 bytes) // // 1 xrefs: // > SpriteDescription::createDescription @ 0x3c4310 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:46:33 +0000 // int __fastcall SpriteDescription::initDescription(SpriteDescription *this, DS_Dictionary *a2) { char *v4; // r0 float v5; // s15 char *v6; // r0 char *v7; // r0 char *v8; // r0 cocos2d::CCSpriteFrameCache *StringForKey; // r0 cocos2d::CCSpriteFrameCache *v10; // r0 char *v11; // r1 cocos2d::CCObject *v12; // r0 int v13; // r5 _BYTE v15[8]; // [sp+4h] [bp+0h] BYREF int v16; // [sp+Ch] [bp+8h] BYREF size_t v17; // [sp+10h] [bp+Ch] char *v18; // [sp+14h] [bp+10h] int v19; // [sp+18h] [bp+14h] BYREF size_t v20; // [sp+1Ch] [bp+18h] char *v21; // [sp+20h] [bp+1Ch] DS_Dictionary::getVec2ForKey((DS_Dictionary *)v15, (const char *)a2); cocos2d::CCPoint::operator=((char *)this + 52, v15); DS_Dictionary::getVec2ForKey((DS_Dictionary *)v15, (const char *)a2); cocos2d::CCPoint::operator=((char *)this + 68, v15); DS_Dictionary::getVec2ForKey((DS_Dictionary *)v15, (const char *)a2); cocos2d::CCPoint::operator=((char *)this + 60, v15); DS_Dictionary::getStringForKey((DS_Dictionary *)&v19, (const char *)a2); if ( (v19 & 1) != 0 ) v4 = v21; else v4 = (char *)&v19 + 1; v5 = atof(v4); *((float *)this + 19) = v5; std::string::~string((int)&v19); DS_Dictionary::getStringForKey((DS_Dictionary *)&v19, (const char *)a2); if ( (v19 & 1) != 0 ) v6 = v21; else v6 = (char *)&v19 + 1; *((_DWORD *)this + 20) = atoi(v6); std::string::~string((int)&v19); DS_Dictionary::getStringForKey((DS_Dictionary *)&v19, (const char *)a2); if ( (v19 & 1) != 0 ) v7 = v21; else v7 = (char *)&v19 + 1; *((_DWORD *)this + 21) = atoi(v7); std::string::~string((int)&v19); DS_Dictionary::getStringForKey((DS_Dictionary *)&v19, (const char *)a2); if ( (v19 & 1) != 0 ) v8 = v21; else v8 = (char *)&v19 + 1; *((_BYTE *)this + 88) = atoi(v8) != 0; std::string::~string((int)&v19); if ( *((_BYTE *)this + 88) ) { StringForKey = (cocos2d::CCSpriteFrameCache *)DS_Dictionary::getStringForKey( (DS_Dictionary *)&v16, (const char *)a2); v10 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(StringForKey); if ( (v16 & 1) != 0 ) v11 = v18; else v11 = (char *)&v16 + 1; v12 = (cocos2d::CCObject *)cocos2d::CCSpriteFrameCache::spriteFrameByName(v10, v11); *((_DWORD *)this + 23) = v12; cocos2d::CCObject::retain(v12); v19 = 0; v20 = 0; v21 = nullptr; v13 = *((_DWORD *)this + 23); if ( (v16 & 1) != 0 ) { std::string::__init(&v19, v18, v17); } else { v19 = v16; v20 = v17; v21 = v18; } std::string::operator=((unsigned __int8 *)(v13 + 136), (unsigned __int8 *)&v19); std::string::~string((int)&v19); std::string::~string((int)&v16); } return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source