| 186 | } |
| 187 | |
| 188 | void Menu::UpdateWindowBackendObjects() { |
| 189 | Ship::WindowBackend runningWindowBackend = Ship::Context::GetInstance()->GetWindow()->GetWindowBackend(); |
| 190 | int32_t configWindowBackendId = Ship::Context::GetInstance()->GetConfig()->GetInt("Window.Backend.Id", -1); |
| 191 | if (Ship::Context::GetInstance()->GetWindow()->IsAvailableWindowBackend(configWindowBackendId)) { |
| 192 | configWindowBackend = static_cast<Ship::WindowBackend>(configWindowBackendId); |
| 193 | } else { |
| 194 | configWindowBackend = runningWindowBackend; |
| 195 | } |
| 196 | |
| 197 | availableWindowBackends = Ship::Context::GetInstance()->GetWindow()->GetAvailableWindowBackends(); |
| 198 | for (auto& backend : *availableWindowBackends) { |
| 199 | availableWindowBackendsMap[backend] = windowBackendsMap.at(backend); |
| 200 | } |
| 201 | } |
| 202 | |
| 203 | bool Menu::IsMenuPopped() { |
| 204 | return popped; |
nothing calls this directly
no outgoing calls
no test coverage detected