// // cocos2d::CCParticleSystem::initWithFile from 0xd7207c to 0xd72278 (508 bytes) // // 3 xrefs: // > cocos2d::CCParticleSystem::create @ 0xd722a4 // > cocos2d::CCParticleSystemQuad::create @ 0xd73830 // > @ 0xa17b8 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 13:08:00 +0000 // __int64 __fastcall cocos2d::CCParticleSystem::initWithFile( cocos2d::CCParticleSystem *this, char *a2, unsigned __int8 a3) { char *v3; // x23 __int64 v7; // x0 CCContentManager *v8; // x0 size_t v9; // x1 CCContentManager *v10; // x0 cocos2d::CCDictionary *v11; // x23 size_t v12; // x0 size_t v13; // x2 char *v14; // x22 unsigned int v15; // w19 _BYTE *v17; // x0 __int64 v18; // x0 char *v19; // x2 CCContentManager *v20; // [xsp+58h] [xbp+58h] BYREF size_t v21; // [xsp+60h] [xbp+60h] void *v22; // [xsp+68h] [xbp+68h] CCContentManager *v23; // [xsp+70h] [xbp+70h] BYREF size_t v24; // [xsp+78h] [xbp+78h] char *v25; // [xsp+80h] [xbp+80h] v3 = (char *)this + 328; v7 = cocos2d::CCFileUtils::sharedFileUtils(_stack_chk_guard); (*(void (__fastcall **)(CCContentManager **__return_ptr, __int64, char *, _QWORD))(*(_QWORD *)v7 + 48LL))( &v23, v7, a2, 0); if ( (*((_BYTE *)this + 328) & 1) != 0 ) { **((_BYTE **)v3 + 2) = 0; *((_QWORD *)v3 + 1) = 0; } else { *((_BYTE *)this + 329) = 0; *((_BYTE *)this + 328) = 0; } std::string::reserve((__int64 *)v3, 0); *((_QWORD *)v3 + 2) = v25; v8 = v23; v9 = v24; *(_QWORD *)v3 = v23; *((_QWORD *)v3 + 1) = v9; v10 = (CCContentManager *)CCContentManager::sharedManager(v8); v11 = (cocos2d::CCDictionary *)CCContentManager::addDict(v10, a2, 1); v20 = nullptr; v21 = 0; v22 = nullptr; v12 = strlen(a2); std::string::__init((__int64 *)&v20, a2, v12); if ( ((unsigned __int8)v20 & 1) != 0 ) { v13 = v21; v14 = (char *)v22; if ( !v21 ) goto LABEL_5; } else { v13 = (unsigned __int8)v20 >> 1; v14 = (char *)&v20 + 1; if ( !((unsigned __int8)v20 >> 1) ) goto LABEL_5; } v17 = memchr(v14, 47, v13); if ( v17 && v17 - v14 != -1 ) { v18 = std::string::rfind((__int64)&v20, 0x2Fu, 0xFFFFFFFFFFFFFFFFLL); std::string::basic_string((__int64 *)&v23, (__int64)&v20, 0, v18 + 1); if ( ((unsigned __int8)v20 & 1) != 0 ) { *(_BYTE *)v22 = 0; v21 = 0; } else { LOWORD(v20) = 0; } std::string::reserve((__int64 *)&v20, 0); v20 = v23; v21 = v24; if ( ((unsigned __int8)v23 & 1) != 0 ) v19 = v25; else v19 = (char *)&v20 + 1; v22 = v25; v15 = (unsigned __int8)cocos2d::CCParticleSystem::initWithDictionary(this, v11, v19, a3); goto LABEL_6; } LABEL_5: v15 = (unsigned __int8)cocos2d::CCParticleSystem::initWithDictionary(this, v11, &byte_11B8890, a3); LABEL_6: if ( ((unsigned __int8)v20 & 1) != 0 ) operator delete(v22); return v15; }
GD Web Decomp Icon

GD Web Decomp

Raw Source