// // EditorUI::getViewButtonState from 0x6f6b24 to 0x6f6bb0 (140 bytes) // // 2 xrefs: // > EditorUI::updateViewButtons @ 0x6f6c08 // > EditorUI::toggleViewOption @ 0x70c604 // // 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:57:39 +0000 // GameManager *__fastcall EditorUI::getViewButtonState(EditorUI *this, int a2) { GameManager *result; // r0 char **v3; // r2 GameManager *v4; // r4 int v5; // r0 GameManager *v6; // r0 char *v7; // r1 int v8; // [sp+4h] [bp-4h] BYREF v8 = a2; switch ( a2 ) { case 14: return (GameManager *)*(unsigned __int8 *)(GameManager::sharedState(this) + 721); case 15: return (GameManager *)*(unsigned __int8 *)(GameManager::sharedState(this) + 722); case 17: v3 = &LevelEditorLayer::s_showLocalDeaths; goto LABEL_6; case 18: v3 = LevelEditorLayer::s_showGlobalDeaths; goto LABEL_6; case 19: v3 = LevelEditorLayer::s_showDeathLabels; goto LABEL_6; case 21: v3 = LevelEditorLayer::s_liveTraceIn; goto LABEL_6; case 22: v3 = &LevelEditorLayer::s_liveTraceOut; LABEL_6: result = (GameManager *)(unsigned __int8)**v3; break; default: result = (GameManager *)std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::find( (_DWORD *)this + 229, (unsigned int *)&v8); v4 = result; if ( result ) { v5 = *((unsigned __int8 *)result + 12); result = (v5 & 1) != 0 ? *((GameManager **)v4 + 4) : (GameManager *)(v5 >> 1); if ( result ) { v6 = (GameManager *)GameManager::sharedState(result); if ( (*((_BYTE *)v4 + 12) & 1) != 0 ) v7 = *((char **)v4 + 5); else v7 = (char *)v4 + 13; result = (GameManager *)GameManager::getGameVariable(v6, v7); if ( v8 < 0 ) result = (GameManager *)((unsigned __int8)result ^ 1); } } break; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source