// // EditorPauseLayer::toggleGridOnTop from 0x1002947b0 to 0x10029482c (124 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 __fastcall EditorPauseLayer::toggleGridOnTop(EditorPauseLayer *a1, cocos2d::CCObject *a2) { GameManager *v2; // rax GameManager *v3; // rax bool GameVariable; // r14 __int64 v5; // rax __int64 v6; // rdx v2 = GameManager::sharedState(); GameManager::toggleGameVariable(v2, "0039"); v3 = GameManager::sharedState(); GameVariable = GameManager::getGameVariable(v3, "0039"); v5 = ((__int64 (__fastcall *)(DrawGridLayer *))a1->m_editorLayer->m_drawGridLayer->getParent)(a1->m_editorLayer->m_drawGridLayer); v6 = 4294965697LL; if ( GameVariable ) v6 = 1399; (*(void (__fastcall **)(__int64, DrawGridLayer *, __int64))(*(_QWORD *)v5 + 576LL))( v5, a1->m_editorLayer->m_drawGridLayer, v6); }