// // EditorUI::getViewButtonState from 0xbe02d8 to 0xbe0414 (316 bytes) // // 3 xrefs: // > EditorUI::updateViewButtons @ 0xbe048c // > EditorUI::toggleViewOption @ 0xbfe9a8 // > @ 0x8fd28 // // 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 13:03:45 +0000 // __int64 __fastcall EditorUI::getViewButtonState(EditorUI *this, int a2) { __int64 *v2; // x0 __int64 *v3; // x19 GameManager *v4; // x0 __int64 v5; // x1 GameManager *v6; // x0 char *v7; // x1 __int64 result; // x0 int v9; // [xsp+2Ch] [xbp+2Ch] BYREF v9 = a2; switch ( a2 ) { case 14: result = *(unsigned __int8 *)(GameManager::sharedState(this) + 921); break; case 15: result = *(unsigned __int8 *)(GameManager::sharedState(this) + 922); break; case 17: result = (unsigned __int8)LevelEditorLayer::s_showLocalDeaths; break; case 18: result = (unsigned __int8)LevelEditorLayer::s_showGlobalDeaths; break; case 19: result = (unsigned __int8)LevelEditorLayer::s_showDeathLabels; break; case 21: result = (unsigned __int8)LevelEditorLayer::s_liveTraceIn; break; case 22: result = (unsigned __int8)LevelEditorLayer::s_liveTraceOut; break; default: v2 = std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::find( (_QWORD *)this + 174, &v9); v3 = v2; if ( !v2 ) goto LABEL_20; v4 = (GameManager *)*((unsigned __int8 *)v2 + 24); v5 = (unsigned __int8)v4 >> 1; if ( ((unsigned __int8)v4 & 1) != 0 ) v5 = v3[4]; if ( v5 ) { v6 = (GameManager *)GameManager::sharedState(v4); if ( (v3[3] & 1) != 0 ) v7 = (char *)v3[5]; else v7 = (char *)v3 + 25; LOBYTE(result) = GameManager::getGameVariable(v6, v7); if ( v9 >= 0 ) result = (unsigned __int8)result; else result = (unsigned __int8)result ^ 1u; } else { LABEL_20: result = 0; } break; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source