FullscreenUI: Fix ImGui asset tripping on empty game grid

This commit is contained in:
Stenzek
2025-11-24 21:56:46 +10:00
parent e012d97800
commit a14433e033
2 changed files with 7 additions and 5 deletions

View File

@@ -768,7 +768,9 @@ void FullscreenUI::DrawGameGrid(const ImVec2& heading_size)
u32 grid_x = 0;
float row_item_height = base_item_height;
ImGui::SetCursorPosX(ImGui::GetCursorPosX() + x_padding);
if (!s_game_list_locals.game_list_sorted_entries.empty())
ImGui::SetCursorPosX(ImGui::GetCursorPosX() + x_padding);
for (size_t entry_index = 0; entry_index < s_game_list_locals.game_list_sorted_entries.size(); entry_index++)
{
if (window->SkipItems)

View File

@@ -1187,10 +1187,10 @@ std::string MiniHost::GetWindowTitle(const std::string& game_title)
void MiniHost::WarnAboutInterface()
{
Host::AddIconOSDMessage(OSDMessageType::Warning, "MiniWarning", ICON_EMOJI_WARNING,
"This is the \"mini\" interface for DuckStation, and is missing many features.",
"We recommend using the Qt interface instead, which you can download\n"
"from https://www.duckstation.org/.");
Host::AddIconOSDMessage(
OSDMessageType::Warning, "MiniWarning", "images/duck.png",
"This is the \"mini\" interface for DuckStation, and is missing many features.",
"We recommend using the Qt interface instead, which you can download from https://www.duckstation.org/.");
}
void Host::OnSystemGameChanged(const std::string& disc_path, const std::string& game_serial,