summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/FileMonitor.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2014-03-14 23:38:14 -0400
committerLioncash <mathew1800@gmail.com>2014-03-16 16:54:00 -0400
commitbd1ce18f9092f2929929513729e8abee8f60e4a5 (patch)
tree17e710b3672d4a971202dd7d4069eb880ecc1f23 /Source/Core/DiscIO/FileMonitor.cpp
parentf325fc9634350f63faa7b04893805ada8d3f8816 (diff)
Simplify file tree building for the filesystem view.
Technically this also simplifies on disc filename building in general.
Diffstat (limited to 'Source/Core/DiscIO/FileMonitor.cpp')
-rw-r--r--Source/Core/DiscIO/FileMonitor.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/Source/Core/DiscIO/FileMonitor.cpp b/Source/Core/DiscIO/FileMonitor.cpp
index 34790ff408..d99bd14cd8 100644
--- a/Source/Core/DiscIO/FileMonitor.cpp
+++ b/Source/Core/DiscIO/FileMonitor.cpp
@@ -142,13 +142,9 @@ void FindFilename(u64 offset)
return;
}
- const char *fname = pFileSystem->GetFileName(offset);
+ const std::string filename = pFileSystem->GetFileName(offset);
- // There's something wrong with the paths
- if (!fname || (strlen(fname) == 512))
- return;
-
- CheckFile(fname, pFileSystem->GetFileSize(fname));
+ CheckFile(filename, pFileSystem->GetFileSize(filename));
}
void Close()