From b187ffeef759fcbb4dd3dd871794b30bf54a82b8 Mon Sep 17 00:00:00 2001 From: Gliniak Date: Mon, 16 Dec 2024 19:36:33 +0100 Subject: [PATCH] [UI] Fixed crash while opening titles menu while not being logged in --- src/xenia/kernel/xam/xam_ui.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/xenia/kernel/xam/xam_ui.cc b/src/xenia/kernel/xam/xam_ui.cc index 813066132..04061dfad 100644 --- a/src/xenia/kernel/xam/xam_ui.cc +++ b/src/xenia/kernel/xam/xam_ui.cc @@ -1376,10 +1376,13 @@ bool xeDrawProfileContent(ui::ImGuiDrawer* imgui_drawer, const uint64_t xuid, } ImGui::EndDisabled(); + const bool is_signedin = profile_manager->GetProfile(xuid) != nullptr; + ImGui::BeginDisabled(!is_signedin); if (ImGui::MenuItem("Show Achievements")) { new GamesInfoDialog(imgui_drawer, next_window_position, profile_manager->GetProfile(user_index)); } + ImGui::EndDisabled(); if (ImGui::MenuItem("Show Content Directory")) { const auto path = profile_manager->GetProfileContentPath(