// // EditorUI::toggleSnap from 0x100470e28 to 0x100470eac (132 bytes) // // 3 xrefs: // > EditorUI::handleEditorAction @ 0x100163128 // > EditorUI::init @ 0x10047095c // > EditorUI::init @ 0x10046ee10 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:05:38 +0000 // __int64 __fastcall EditorUI::toggleSnap(__int64 a1) { __int64 v2; // x0 _BOOL4 GameVariable; // w21 __int64 v4; // x0 __int64 v5; // x0 const char *v6; // x1 __n128 v7; // q0 __int64 v8; // x0 v2 = GameManager::sharedState(); GameVariable = GameManager::getGameVariable(v2, "0008"); v4 = GameManager::sharedState(); GameManager::setGameVariable(v4, "0008", !GameVariable); v5 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 976) + 1072LL))(*(_QWORD *)(a1 + 976)); if ( GameVariable ) v6 = "GJ_button_01.png"; else v6 = "GJ_button_02.png"; ButtonSprite::updateBGImage(v5, (__int64)v6); v8 = EditorSFXManager::sharedState(v7); return EditorSFXManager::playAction(v8, 190, 189); }