mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 06:26:49 +00:00
vfsDir usage fixed
This commit is contained in:
parent
31a41b795e
commit
9cfdce91a1
6 changed files with 32 additions and 32 deletions
|
|
@ -106,23 +106,15 @@ void GameViewer::OnColClick(wxListEvent& event)
|
|||
|
||||
void GameViewer::LoadGames()
|
||||
{
|
||||
vfsDir dir(m_path);
|
||||
LOG_NOTICE(HLE, "path: %s", m_path.c_str());
|
||||
if(!dir.IsOpened()) return;
|
||||
|
||||
m_games.clear();
|
||||
|
||||
for(const DirEntryInfo* info : dir)
|
||||
for (const auto info : vfsDir(m_path))
|
||||
{
|
||||
if(info->flags & DirEntry_TypeDir)
|
||||
{
|
||||
m_games.push_back(info->name);
|
||||
}
|
||||
}
|
||||
dir.Close();
|
||||
|
||||
//ConLog.Write("path: %s", m_path.wx_str());
|
||||
//ConLog.Write("folders count: %d", m_games.GetCount());
|
||||
}
|
||||
|
||||
void GameViewer::LoadPSF()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue