mirror of
https://github.com/stenzek/duckstation.git
synced 2026-02-04 05:04:33 +00:00
FullscreenUI: Fix ImGui asset tripping on empty game grid
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user