diff options
| author | JosJuice <josjuice@gmail.com> | 2015-04-28 12:48:05 +0200 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2015-04-28 12:48:05 +0200 |
| commit | d43a920924b11a825d474f75cba3996b676bb731 (patch) | |
| tree | d55816916e424a7443f62e4163200adc86e2b8ff /Source/Core/DiscIO/FileMonitor.cpp | |
| parent | 79dff19aa0c9f649f9d0783025198a88cd2a8ff0 (diff) | |
Filesystem: Return file list reference instead of modifying argument
Diffstat (limited to 'Source/Core/DiscIO/FileMonitor.cpp')
| -rw-r--r-- | Source/Core/DiscIO/FileMonitor.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/Source/Core/DiscIO/FileMonitor.cpp b/Source/Core/DiscIO/FileMonitor.cpp index 48ab314c5f..09f1e3d33d 100644 --- a/Source/Core/DiscIO/FileMonitor.cpp +++ b/Source/Core/DiscIO/FileMonitor.cpp @@ -27,7 +27,6 @@ namespace FileMon static DiscIO::IVolume *OpenISO = nullptr; static DiscIO::IFileSystem *pFileSystem = nullptr; -static std::vector<const DiscIO::SFileInfo *> DiscFiles; static std::string ISOFile = "", CurrentFile = ""; static bool FileAccess = true; @@ -73,8 +72,6 @@ void ReadFileSystem(const std::string& filename) pFileSystem = nullptr; } - // DiscFiles' pointers are no longer valid after pFileSystem is cleared - DiscFiles.clear(); OpenISO = DiscIO::CreateVolumeFromFilename(filename); if (!OpenISO) return; @@ -85,8 +82,6 @@ void ReadFileSystem(const std::string& filename) if (!pFileSystem) return; - - pFileSystem->GetFileList(DiscFiles); } FileAccess = true; @@ -166,9 +161,6 @@ void Close() pFileSystem = nullptr; } - // DiscFiles' pointers are no longer valid after pFileSystem is cleared - DiscFiles.clear(); - ISOFile = ""; CurrentFile = ""; FileAccess = true; |
