// // GJBaseGameLayer::createCustomParticle from 0x100204bb4 to 0x100204dbc (520 bytes) // // 3 xrefs: // > @ 0x10078fe30 // > @ 0x1007c0c48 // > @ 0x1007f43a8 // // 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 // cocos2d::CCParticleSystemQuad *__fastcall GJBaseGameLayer::createCustomParticle( __int64 a1, char *a2, const cocos2d::ParticleStruct *a3, int a4, char a5) { char *v8; // x23 __int64 v10; // x20 __int64 v11; // x0 __int64 v12; // x20 std::string *v13; // x0 __int64 v14; // x25 char *v15; // x1 __int64 v16; // x0 __int64 v17; // x24 __int64 v18; // x25 char *v19; // x1 cocos2d::CCParticleSystemQuad *v20; // x21 __n128 v21; // q0 int v23; // [xsp+Ch] [xbp-64h] BYREF void *__p[2]; // [xsp+10h] [xbp-60h] BYREF char v25; // [xsp+27h] [xbp-49h] v8 = a2; v10 = *(_QWORD *)(a1 + 12168); if ( a2[23] < 0 ) a2 = *(char **)a2; sub_100009900(__p, a2); v11 = cocos2d::CCDictionary::objectForKey_1(v10, __p); v12 = v11; if ( v25 < 0 ) { operator delete(__p[0]); if ( v12 ) goto LABEL_18; } else if ( v11 ) { goto LABEL_18; } if ( (a5 & 1) == 0 ) { v12 = sub_10024A15C(v11); ++*(_DWORD *)(a1 + 12148); (*(void (__fastcall **)(__int64))(*(_QWORD *)v12 + 72LL))(v12); v23 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v12 + 64LL))(v12); __p[0] = &v23; v13 = (std::string *)sub_100140AE0(a1 + 12184, &v23, (__int64)&unk_10063A31C, (_DWORD **)__p); std::string::operator=(v13 + 1, (const std::string *)v8); v14 = *(_QWORD *)(a1 + 12168); if ( v8[23] >= 0 ) v15 = v8; else v15 = *(char **)v8; sub_100009900(__p, v15); v16 = cocos2d::CCDictionary::setObject_1(v14, v12, __p); if ( v25 < 0 ) operator delete(__p[0]); v17 = *(_QWORD *)(a1 + 12224); v18 = sub_10024A15C(v16); if ( v8[23] >= 0 ) v19 = v8; else v19 = *(char **)v8; sub_100009900(__p, v19); cocos2d::CCDictionary::setObject_1(v17, v18, __p); if ( v25 < 0 ) operator delete(__p[0]); } LABEL_18: if ( a4 >= 1 && (unsigned int)sub_10024A36C(v12) >= a4 ) return nullptr; v20 = GameToolbox::particleFromStruct(a3, nullptr, 1); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, _QWORD))v20->setTag)(v20, 0); cocos2d::CCParticleSystem::stopSystem(v20); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, _QWORD))v20->setVisible)(v20, 0); if ( (a5 & 1) == 0 ) { v21 = sub_10024A2D0(v12, v20); v20->m_nCustomParticleIndex = (*(__int64 (__fastcall **)(__int64, __n128))(*(_QWORD *)v12 + 64LL))(v12, v21); } return v20; }
GD Web Decomp Icon

GD Web Decomp

Raw Source