Game list scans subdirs for games
This commit is contained in:
parent
2730758567
commit
a6779ab7d8
1 changed files with 9 additions and 9 deletions
|
@ -69,17 +69,17 @@ namespace Ryujinx.UI
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
DirectoryInfo AppDirInfo = new DirectoryInfo(appDir);
|
string[] apps = Directory.GetFiles(appDir, "*.*", SearchOption.AllDirectories);
|
||||||
foreach (FileInfo App in AppDirInfo.GetFiles())
|
foreach (string app in apps)
|
||||||
{
|
{
|
||||||
if ((Path.GetExtension(App.ToString()) == ".xci") ||
|
if ((Path.GetExtension(app.ToString()) == ".xci") ||
|
||||||
(Path.GetExtension(App.ToString()) == ".nca") ||
|
(Path.GetExtension(app.ToString()) == ".nca") ||
|
||||||
(Path.GetExtension(App.ToString()) == ".nsp") ||
|
(Path.GetExtension(app.ToString()) == ".nsp") ||
|
||||||
(Path.GetExtension(App.ToString()) == ".pfs0") ||
|
(Path.GetExtension(app.ToString()) == ".pfs0")||
|
||||||
(Path.GetExtension(App.ToString()) == ".nro") ||
|
(Path.GetExtension(app.ToString()) == ".nro") ||
|
||||||
(Path.GetExtension(App.ToString()) == ".nso"))
|
(Path.GetExtension(app.ToString()) == ".nso"))
|
||||||
{
|
{
|
||||||
applications.Add(App.ToString());
|
applications.Add(app);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue