// // EditorPauseLayer::toggleEditorGround from 0x1400dd350 to 0x1400dd407 (183 bytes) // // 2 xrefs: // > EditorPauseLayer::customSetup @ 0x1400dbfc6 // > @ 0x1406c89dc // // 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 // // Hidden C++ exception states: #wind=2 void EditorPauseLayer::toggleEditorGround(EditorPauseLayer *a1, cocos2d::CCObject *a2) { GameManager *v3; // rcx bool GameVariable; // al LevelEditorLayer *m_editorLayer; // rcx void *v6; // [rsp+30h] [rbp+8h] void *v7; // [rsp+30h] [rbp+8h] if ( !qword_1406C2ED8 ) { v6 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00(v6); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); } GameManager::toggleGameVariable((GameManager *)a1, "0037"); v3 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v7 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00(v7); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v3 = (GameManager *)qword_1406C2ED8; } GameVariable = GameManager::getGameVariable(v3, "0037"); m_editorLayer = a1->m_editorLayer; m_editorLayer->m_hideGround = !GameVariable; m_editorLayer->m_groundLayer->setVisible(m_editorLayer->m_groundLayer, GameVariable); }