diff options
| author | Léo Lam <leo@leolam.fr> | 2020-11-12 14:43:35 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-12 14:43:35 +0100 |
| commit | ec5313fe24fe0b301603466c12f402fc08605813 (patch) | |
| tree | 06d7c43a9a7a51511fb2961f55eb1707e5eab6cb /Source/Core/DiscIO/DiscExtractor.cpp | |
| parent | c991f004796b0ef62d18ad58802c5fe62c0cf88a (diff) | |
| parent | d7fa75ef640bc0c691e9a00c3433c3411dcf9a5c (diff) | |
Merge pull request #9204 from fbastos1/master
fix emulator issue #12139
Diffstat (limited to 'Source/Core/DiscIO/DiscExtractor.cpp')
| -rw-r--r-- | Source/Core/DiscIO/DiscExtractor.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Core/DiscIO/DiscExtractor.cpp b/Source/Core/DiscIO/DiscExtractor.cpp index a68093aca9..225302bb9c 100644 --- a/Source/Core/DiscIO/DiscExtractor.cpp +++ b/Source/Core/DiscIO/DiscExtractor.cpp @@ -130,13 +130,15 @@ void ExportDirectory(const Volume& volume, const Partition& partition, const Fil const std::string& export_folder, const std::function<bool(const std::string& path)>& update_progress) { - File::CreateFullPath(export_folder + '/'); + const std::string export_root = + export_folder + (directory.IsDirectory() ? "/" + directory.GetName() + "/" : "/"); + File::CreateFullPath(export_root); for (const FileInfo& file_info : directory) { const std::string name = file_info.GetName() + (file_info.IsDirectory() ? "/" : ""); const std::string path = filesystem_path + name; - const std::string export_path = export_folder + '/' + name; + const std::string export_path = export_root + name; if (update_progress(path)) return; |
