// // EditorUI::toggleMode from 0x489d04 to 0x489da8 (164 bytes) // // 6 xrefs: // > EditorUI::onPlaytest @ 0x489e7a // > EditorUI::init @ 0x48b260 // > EditorUI::handleEditorAction @ 0x6f1a2e // > EditorUI::handleEditorAction @ 0x6f1a40 // > EditorUI::handleEditorAction @ 0x6f1a52 // > EditorUI::handleEditorAction @ 0x6f1a64 // // 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:28 +0000 // char *__fastcall EditorUI::toggleMode(EditorUI *this, cocos2d::CCObject *a2) { char *result; // r0 unsigned int v4; // r5 EditorSFXManager *v5; // r0 int v6; // r5 EditorSFXManager *v7; // r0 int v8; // r3 char *v9; // r0 result = (char *)(*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2); if ( *((char **)this + 235) != result ) { *((_DWORD *)this + 235) = result; v4 = (unsigned int)(result - 1); v5 = (EditorSFXManager *)EditorUI::resetUI(this); if ( v4 > 3 ) v6 = 169; else v6 = *((unsigned __int8 *)&word_BEBDD8[56] + v4); v7 = (EditorSFXManager *)EditorSFXManager::sharedState(v5); result = (char *)EditorSFXManager::playAction(v7, v6, 169); v8 = *((_DWORD *)this + 235); switch ( v8 ) { case 1: v9 = (char *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 170) + 536))(*((_DWORD *)this + 170)); break; case 2: v9 = (char *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 171) + 536))(*((_DWORD *)this + 171)); break; case 3: v9 = (char *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 172) + 536))(*((_DWORD *)this + 172)); break; case 4: v9 = (char *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 173) + 536))(*((_DWORD *)this + 173)); break; default: return result; } return ButtonSprite::updateBGImage(v9, "GJ_button_02.png"); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source