// // GJBaseGameLayer::createCustomParticle from 0x9df274 to 0x9df548 (724 bytes) // // 4 xrefs: // > @ 0x552e8 // > @ 0x1428a18 // > @ 0x1435f78 // > @ 0x1475848 // // 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 12:58:54 +0000 // cocos2d::CCParticleSystem *__fastcall GJBaseGameLayer::createCustomParticle( __int64 a1, char *a2, unsigned int *a3, int a4, unsigned __int8 a5, int a6, int a7, int a8, char a9) { unsigned int v11; // w25 const char *v14; // x1 char v15; // t1 __int64 v16; // x21 size_t v17; // x0 cocos2d::CCObject *v18; // x21 _BOOL8 v19; // x0 cocos2d::CCParticleSystem *v20; // x22 unsigned int v22; // w2 void (__fastcall *v23)(cocos2d::CCObject *, _QWORD); // x3 __int64 *v24; // x0 __int64 v25; // x27 const char *v26; // x1 size_t v27; // x0 cocos2d::CCArray *v28; // x0 __int64 v29; // x28 cocos2d::CCObject *v30; // x23 char *v31; // x27 size_t v32; // x0 char *v33; // [xsp+68h] [xbp+68h] char *v34; // [xsp+68h] [xbp+68h] int v35; // [xsp+7Ch] [xbp+7Ch] BYREF cocos2d::CCArray *v36; // [xsp+80h] [xbp+80h] BYREF __int64 v37; // [xsp+88h] [xbp+88h] void *v38; // [xsp+90h] [xbp+90h] v11 = a5; v15 = *a2; v14 = a2 + 1; v16 = *(_QWORD *)(a1 + 12288); if ( (v15 & 1) != 0 ) v14 = *((const char **)a2 + 2); v33 = (char *)v14; v36 = nullptr; v37 = 0; v38 = nullptr; v17 = strlen(v14); std::string::__init((__int64 *)&v36, v33, v17); v18 = (cocos2d::CCObject *)cocos2d::CCDictionary::objectForKey(v16, &v36); if ( ((unsigned __int8)v36 & 1) != 0 ) operator delete(v38); v19 = v18 == nullptr; if ( (unsigned int)v19 > v11 ) { v18 = (cocos2d::CCObject *)cocos2d::CCArray::create((cocos2d::CCArray *)v19); v22 = *(_DWORD *)(a1 + 12268) + 1; v23 = *(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v18 + 72LL); *(_DWORD *)(a1 + 12268) = v22; v23(v18, v22); v35 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v18 + 64LL))(v18); v24 = (__int64 *)std::unordered_map::operator[](a1 + 12304, &v35); if ( a2 != (char *)v24 ) { if ( (*a2 & 1) != 0 ) std::string::assign(v24, *((const void **)a2 + 2), *((_QWORD *)a2 + 1)); else std::string::assign(v24, a2 + 1, (unsigned __int8)*a2 >> 1); } v25 = *(_QWORD *)(a1 + 12288); v26 = a2 + 1; if ( (*a2 & 1) != 0 ) v26 = *((const char **)a2 + 2); v34 = (char *)v26; v36 = nullptr; v37 = 0; v38 = nullptr; v27 = strlen(v26); std::string::__init((__int64 *)&v36, v34, v27); cocos2d::CCDictionary::setObject(v25, v18); v28 = (cocos2d::CCArray *)(unsigned __int8)v36; if ( ((unsigned __int8)v36 & 1) != 0 ) operator delete(v38); v29 = *(_QWORD *)(a1 + 12344); v30 = (cocos2d::CCObject *)cocos2d::CCArray::create(v28); v31 = a2 + 1; if ( (*a2 & 1) != 0 ) v31 = *((char **)a2 + 2); v36 = nullptr; v37 = 0; v38 = nullptr; v32 = strlen(v31); std::string::__init((__int64 *)&v36, v31, v32); cocos2d::CCDictionary::setObject(v29, v30); if ( ((unsigned __int8)v36 & 1) != 0 ) operator delete(v38); } if ( a4 <= 0 || (v20 = nullptr, (unsigned int)cocos2d::CCArray::count(v18) < a4) ) { v20 = (cocos2d::CCParticleSystem *)GameToolbox::particleFromStruct(a3, 0, 1); (*(void (__fastcall **)(cocos2d::CCParticleSystem *, _QWORD))(*(_QWORD *)v20 + 72LL))(v20, 0); cocos2d::CCParticleSystem::stopSystem(v20); (*(void (__fastcall **)(cocos2d::CCParticleSystem *, _QWORD))(*(_QWORD *)v20 + 344LL))(v20, 0); if ( !v11 ) { cocos2d::CCArray::addObject(v18, v20); *((_DWORD *)v20 + 195) = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v18 + 64LL))(v18); } } return v20; }
GD Web Decomp Icon

GD Web Decomp

Raw Source