//
// EditorOptionsLayer::onClose from 0x4a7c94 to 0x4a7d24 (144 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 EditorOptionsLayer::onClose(EditorOptionsLayer *a1, cocos2d::CCObject *a2)
{
GameManager *v4; // r0
int IntGameVariable; // r6
GameManager *v6; // r0
int v7; // r0
GameManager *v8; // r0
GameManager *v9; // r0
GameManager *v10; // r0
v4 = GameManager::sharedState();
IntGameVariable = GameManager::getIntGameVariable(v4, "0049");
v6 = GameManager::sharedState();
v7 = GameManager::getIntGameVariable(v6, "0050");
if ( a1->m_buttonsPerRow != IntGameVariable || a1->m_buttonRows != v7 )
{
v8 = GameManager::sharedState();
GameManager::setIntGameVariable(v8, "0049", a1->m_buttonsPerRow);
v9 = GameManager::sharedState();
GameManager::setIntGameVariable(v9, "0050", a1->m_buttonRows);
if ( GameManager::sharedState()->m_levelEditorLayer )
GameManager::sharedState()->m_levelEditorLayer->m_editorUI->m_reloadItems = 1;
}
if ( GameManager::sharedState()->m_levelEditorLayer )
{
v10 = GameManager::sharedState();
LevelEditorLayer::updatePreviewParticles(v10->m_levelEditorLayer);
}
SetupTriggerPopup::onClose(a1, a2);
}