//
// ParticleGameObject::createAndAddCustomParticle from 0x1001b19c0 to 0x1001b1a2a (106 bytes)
//
// 0 xrefs:
//
// 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 ParticleGameObject::createAndAddCustomParticle(ParticleGameObject *a1)
{
unsigned int sizex2; // eax
sizex2 = a1->m_particleData.m_data.m_short.sizex2;
if ( (sizex2 & 1) != 0 )
{
if ( !a1->m_particleData.m_data.m_long.size )
return;
}
else if ( !(sizex2 >> 1) )
{
return;
}
a1->m_hasParticles = 1;
if ( a1->m_updatedParticleData )
{
a1->m_updatedParticleData = 0;
GameToolbox::particleStringToStruct(&a1->m_particleData, &a1->m_particleStruct);
}
a1->m_hasParticles = 1;
}