// // EditorUI::toggleSnap from 0x480fa4 to 0x480ff4 (80 bytes) // // 2 xrefs: // > EditorUI::init @ 0x48bf5e // > EditorUI::handleEditorAction @ 0x6f1bb2 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:49:22 +0000 // int __fastcall EditorUI::toggleSnap(EditorUI *this, cocos2d::CCObject *a2) { GameManager *v3; // r0 GameManager *GameVariable; // r4 GameManager *v5; // r0 char *v6; // r0 const char *v7; // r1 char *updated; // r0 EditorSFXManager *v9; // r0 v3 = (GameManager *)GameManager::sharedState(this); GameVariable = (GameManager *)GameManager::getGameVariable(v3, "0008"); v5 = (GameManager *)GameManager::sharedState(GameVariable); GameManager::setGameVariable(v5, "0008", (const char *)((unsigned __int8)GameVariable ^ 1)); v6 = (char *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 177) + 536))(*((_DWORD *)this + 177)); if ( GameVariable ) v7 = "GJ_button_01.png"; else v7 = "GJ_button_02.png"; updated = ButtonSprite::updateBGImage(v6, v7); v9 = (EditorSFXManager *)EditorSFXManager::sharedState((EditorSFXManager *)updated); return EditorSFXManager::playAction(v9, 190, 189); }
GD Web Decomp Icon

GD Web Decomp

Raw Source