diff options
| author | Ryan Houdek <Sonicadvance1@gmail.com> | 2014-03-23 00:34:26 -0500 |
|---|---|---|
| committer | Ryan Houdek <Sonicadvance1@gmail.com> | 2014-03-23 00:34:26 -0500 |
| commit | a3e18cd498e6a02dfd615da25e975f110e8cf365 (patch) | |
| tree | 63d4fabcda7d8d4ddfa1982cc406acf010cb1132 /Source/Core/DiscIO/FileMonitor.cpp | |
| parent | b8f469dedd155f6fd42239cdf22f239037da6fce (diff) | |
| parent | bd1ce18f9092f2929929513729e8abee8f60e4a5 (diff) | |
Merge pull request #171 from lioncash/rarc-cleanup
File tree building cleanup
Diffstat (limited to 'Source/Core/DiscIO/FileMonitor.cpp')
| -rw-r--r-- | Source/Core/DiscIO/FileMonitor.cpp | 8 |
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() |
