Qt: fix adding vsh to gamelist

This commit is contained in:
Megamouse 2023-04-25 04:10:40 +02:00
parent c86d221ba5
commit 3f066cca4a

View File

@ -527,7 +527,7 @@ void game_list_frame::Refresh(const bool from_drive, const bool scroll_after)
const auto dev_flash = g_cfg_vfs.get_dev_flash();
m_path_list.emplace(dev_flash + "vsh/module/vsh.self");
m_path_entries.emplace_back(path_entry{dev_flash + "vsh/module/vsh.self", false, false});
// Remove duplicates
sort(m_path_entries.begin(), m_path_entries.end(), [](const path_entry& l, const path_entry& r){return l.path < r.path;});