// // EditorUI::toggleSnap from 0x140110100 to 0x1401101dc (220 bytes) // // 4 xrefs: // > EditorUI::init @ 0x1400e1852 // > EditorUI::keyDown @ 0x140125c12 // > EditorUI::init @ 0x1400dff55 // > @ 0x1406c8e98 // // 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 EditorUI::toggleSnap(EditorUI *a1, cocos2d::CCObject *a2) { GameManager *v3; // rcx bool v4; // bl GameManager *v5; // rcx ButtonSprite *v6; // rax const char *v7; // rdx void *v8; // [rsp+30h] [rbp+8h] void *v9; // [rsp+30h] [rbp+8h] v3 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v8 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00(v8); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v3 = (GameManager *)qword_1406C2ED8; } v4 = !GameManager::getGameVariable(v3, "0008"); v5 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v9 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00(v9); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v5 = (GameManager *)qword_1406C2ED8; } GameManager::setGameVariable(v5, "0008", v4); v6 = (ButtonSprite *)a1->m_snapBtn->getNormalImage(a1->m_snapBtn); v7 = "GJ_button_01.png"; if ( v4 ) v7 = "GJ_button_02.png"; ButtonSprite::updateBGImage(v6, v7); }
GD Web Decomp Icon

GD Web Decomp

Raw Source