//
// LevelEditorLayer::updatePreviewParticles from 0x462718 to 0x462770 (88 bytes)
//
// 8 xrefs:
// > LevelEditorLayer::updateEditorMode @ 0x46291a
// > LevelEditorLayer::onStopPlaytest @ 0x462a14
// > LevelEditorLayer::onPlaytest @ 0x46850a
// > EditorPauseLayer::togglePreviewParticles @ 0x508f58
// > EditorOptionsLayer::onClose @ 0x5d33b0
// > MapSelectLayer::init @ 0x640f08
// > EditorUI::handleEditorAction @ 0x6f1d92
// > EditorUI::toggleViewOption @ 0x70c3fa
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:48:53 +0000
//
unsigned int __fastcall LevelEditorLayer::updatePreviewParticles(LevelEditorLayer *this)
{
GameManager *v2; // r0
GameManager *v3; // r0
GameManager *v4; // r0
cocos2d::CCArray **v5; // r6
unsigned int v6; // r5
unsigned int result; // r0
ParticleGameObject *v8; // r0
v2 = (GameManager *)GameManager::sharedState(this);
*((_BYTE *)this + 11704) = GameManager::getGameVariable(v2, "0117");
v3 = (GameManager *)*((unsigned __int8 *)this + 11708);
if ( !*((_BYTE *)this + 11708) )
{
v4 = (GameManager *)GameManager::sharedState(v3);
LOBYTE(v3) = GameManager::getGameVariable(v4, "0137");
}
v5 = (cocos2d::CCArray **)((char *)this + 11752);
v6 = 0;
*((_BYTE *)this + 11707) = (_BYTE)v3;
while ( 1 )
{
result = cocos2d::CCArray::count(*v5);
if ( v6 >= result )
break;
v8 = (ParticleGameObject *)cocos2d::CCArray::objectAtIndex(*v5, v6++);
LevelEditorLayer::updatePreviewParticle(this, v8);
}
return result;
}