//
// EditorOptionsLayer::onClose from 0x10029e6f0 to 0x10029e7d1 (225 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008feb80
//
// 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 EditorOptionsLayer::onClose(EditorOptionsLayer *a1, cocos2d::CCObject *a2)
{
GameManager *v2; // rax
int IntGameVariable; // r15d
GameManager *v4; // rax
int v5; // eax
GameManager *v6; // rax
GameManager *v7; // rax
GameManager *v8; // rax
v2 = GameManager::sharedState();
IntGameVariable = GameManager::getIntGameVariable(v2, "0049");
v4 = GameManager::sharedState();
v5 = GameManager::getIntGameVariable(v4, "0050");
if ( a1->m_buttonsPerRow != IntGameVariable || a1->m_buttonRows != v5 )
{
v6 = GameManager::sharedState();
GameManager::setIntGameVariable(v6, "0049", a1->m_buttonsPerRow);
v7 = GameManager::sharedState();
GameManager::setIntGameVariable(v7, "0050", a1->m_buttonRows);
if ( GameManager::sharedState()->m_levelEditorLayer )
GameManager::sharedState()->m_levelEditorLayer->m_editorUI->m_reloadItems = 1;
}
if ( GameManager::sharedState()->m_levelEditorLayer )
{
v8 = GameManager::sharedState();
LevelEditorLayer::updatePreviewParticles(v8->m_levelEditorLayer);
}
SetupTriggerPopup::onClose(a1, a2);
}