aboutsummaryrefslogtreecommitdiff
path: root/BDInfo/BDROM.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2017-03-30 13:56:32 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2017-03-30 13:56:32 -0400
commit7987e64d3875ac0e175224d81d6815596b9dfba9 (patch)
tree0bf4015a4afa3f41e92915da21d0610b58fbd78b /BDInfo/BDROM.cs
parentdb75d02f9c99aad3d88c8beaac5eafaa8aba0e3f (diff)
add new file method overloads
Diffstat (limited to 'BDInfo/BDROM.cs')
-rw-r--r--BDInfo/BDROM.cs11
1 files changed, 8 insertions, 3 deletions
diff --git a/BDInfo/BDROM.cs b/BDInfo/BDROM.cs
index d42e381da..123d1afe5 100644
--- a/BDInfo/BDROM.cs
+++ b/BDInfo/BDROM.cs
@@ -137,19 +137,19 @@ namespace BDInfo
}
if (DirectoryBDJO != null &&
- _fileSystem.GetFiles(DirectoryBDJO.FullName).Any())
+ _fileSystem.GetFilePaths(DirectoryBDJO.FullName).Any())
{
IsBDJava = true;
}
if (DirectorySNP != null &&
- GetFiles(DirectorySNP.FullName, ".mnv").Any())
+ GetFilePaths(DirectorySNP.FullName, ".mnv").Any())
{
IsPSP = true;
}
if (DirectorySSIF != null &&
- _fileSystem.GetFiles(DirectorySSIF.FullName).Any())
+ _fileSystem.GetFilePaths(DirectorySSIF.FullName).Any())
{
Is3D = true;
}
@@ -209,6 +209,11 @@ namespace BDInfo
return _fileSystem.GetFiles(path, new[] { extension }, false, false);
}
+ private IEnumerable<string> GetFilePaths(string path, string extension)
+ {
+ return _fileSystem.GetFilePaths(path, new[] { extension }, false, false);
+ }
+
public void Scan()
{
List<TSStreamClipFile> errorStreamClipFiles = new List<TSStreamClipFile>();