// // GJBaseGameLayer::updateParticles from 0x1002050d8 to 0x100205280 (424 bytes) // // 2 xrefs: // > PlayLayer::updateVisibility @ 0x10011cd6c // > LevelEditorLayer::updateVisibility @ 0x10035f13c // // 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 // void __fastcall GJBaseGameLayer::updateParticles(GJBaseGameLayer *a1, float a2) { __int64 v4; // x20 __int64 v5; // x0 __int64 v6; // x21 __int64 v7; // x20 _DWORD *v8; // x22 _QWORD *v9; // x0 __int64 v10; // x0 void *__p[2]; // [xsp+0h] [xbp-70h] BYREF __int64 v12; // [xsp+10h] [xbp-60h] _DWORD *v13; // [xsp+28h] [xbp-48h] BYREF a1->m_particleCount = 0; if ( (unsigned int)sub_10024A36C(a1->m_temporaryParticles) ) { v4 = 0; do { v5 = sub_10024A388(a1->m_temporaryParticles, v4); v6 = v5; if ( *(_BYTE *)(v5 + 551) == 1 ) { LODWORD(__p[0]) = *(_DWORD *)(v5 + 8); sub_10001B104(&a1->m_customParticlesUIDs.__table_.__bucket_list_.__ptr_.__value_, (int *)__p); sub_10024A464(a1->m_temporaryParticles, v4); } else { a1->m_particleCount += (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 1480LL))(v5); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v6 + 40LL))(v6, a2); v4 = (unsigned int)(v4 + 1); } } while ( (unsigned int)v4 < (unsigned int)sub_10024A36C(a1->m_temporaryParticles) ); } if ( (unsigned int)sub_10024A36C(a1->m_unclaimedParticles) ) { v7 = 0; do { v8 = (_DWORD *)sub_10024A388(a1->m_unclaimedParticles, v7); if ( (*(unsigned int (__fastcall **)(_DWORD *))(*(_QWORD *)v8 + 896LL))(v8) ) { v7 = (unsigned int)(v7 + 1); } else { v13 = v8 + 195; v9 = sub_100140AE0( (unsigned __int64)&a1->m_particleCountToParticleString, v8 + 195, (__int64)&unk_10063A31C, &v13); if ( *((char *)v9 + 47) < 0 ) { sub_1000097D0(__p, (void *)v9[3], v9[4]); } else { *(_OWORD *)__p = *(_OWORD *)(v9 + 3); v12 = v9[5]; } v10 = cocos2d::CCDictionary::objectForKey_1(a1->m_customParticles, __p); if ( v10 ) sub_10024A2D0(v10, v8); sub_10024A464(a1->m_unclaimedParticles, v7); if ( SHIBYTE(v12) < 0 ) operator delete(__p[0]); } } while ( (unsigned int)v7 < (unsigned int)sub_10024A36C(a1->m_unclaimedParticles) ); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source