mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-14 18:58:36 +12:00
Qt: use QDirIterator instead of fs::file stuff
This commit is contained in:
parent
68bb1bd6ee
commit
e7a02f1506
3 changed files with 31 additions and 36 deletions
|
@ -111,14 +111,10 @@ trophy_manager_dialog::trophy_manager_dialog(std::shared_ptr<gui_settings> gui_s
|
|||
m_splitter->addWidget(m_trophy_table);
|
||||
|
||||
// Populate the trophy database
|
||||
QDirIterator dir_iter(qstr(vfs::get(m_TROPHY_DIR)));
|
||||
QDirIterator dir_iter(qstr(vfs::get(m_TROPHY_DIR)), QDir::Dirs | QDir::NoDotAndDotDot);
|
||||
while (dir_iter.hasNext())
|
||||
{
|
||||
dir_iter.next();
|
||||
if (dir_iter.fileName() == "." || dir_iter.fileName() == ".." || dir_iter.fileName() == ".gitignore")
|
||||
{
|
||||
continue;
|
||||
}
|
||||
std::string dirName = sstr(dir_iter.fileName());
|
||||
LOG_TRACE(GENERAL, "Loading trophy dir: %s", dirName);
|
||||
LoadTrophyFolderToDB(dirName);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue