//
// EditorOptionsLayer::onClose from 0x8c2934 to 0x8c2a04 (208 bytes)
//
// 2 xrefs:
// > ??> @ 0x378f0
// > ??> @ 0x11968f8
//
// 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; // x0
int IntGameVariable; // w23
GameManager *v6; // x0
GameManager *v7; // x0
GameManager *v8; // x0
GameManager *v9; // x0
v4 = GameManager::sharedState();
IntGameVariable = GameManager::getIntGameVariable(v4, "0049");
v6 = GameManager::sharedState();
if ( __PAIR64__(GameManager::getIntGameVariable(v6, "0050"), IntGameVariable) != *(_QWORD *)&a1->m_buttonsPerRow )
{
v7 = GameManager::sharedState();
GameManager::setIntGameVariable(v7, "0049", a1->m_buttonsPerRow);
v8 = GameManager::sharedState();
GameManager::setIntGameVariable(v8, "0050", a1->m_buttonRows);
if ( GameManager::sharedState()->m_levelEditorLayer )
GameManager::sharedState()->m_levelEditorLayer->m_editorUI->m_reloadItems = 1;
}
if ( GameManager::sharedState()->m_levelEditorLayer )
{
v9 = GameManager::sharedState();
LevelEditorLayer::updatePreviewParticles(v9->m_levelEditorLayer);
}
SetupTriggerPopup::onClose(a1, a2);
}