// // EditorUI::toggleSnap from 0x37bb28 to 0x37bb6c (68 bytes) // // 2 xrefs: // > EditorUI::init @ 0x3a28ce // > EditorUI::keyDown @ 0x3a7402 // // 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 EditorUI::toggleSnap(EditorUI *a1, cocos2d::CCObject *a2) { GameManager *v3; // r0 _BOOL4 GameVariable; // r4 GameManager *v5; // r0 ButtonSprite *v6; // r0 const char *v7; // r1 v3 = GameManager::sharedState(); GameVariable = GameManager::getGameVariable(v3, "0008"); v5 = GameManager::sharedState(); GameManager::setGameVariable(v5, "0008", !GameVariable); v6 = (ButtonSprite *)a1->m_snapBtn->getNormalImage(a1->m_snapBtn); if ( GameVariable ) v7 = "GJ_button_01.png"; else v7 = "GJ_button_02.png"; ButtonSprite::updateBGImage(v6, v7); }
GD Web Decomp Icon

GD Web Decomp

Raw Source