diff options
| author | bunnei <bunneidev@gmail.com> | 2014-11-17 22:26:54 -0500 |
|---|---|---|
| committer | bunnei <bunneidev@gmail.com> | 2014-11-17 22:26:54 -0500 |
| commit | b66859714bda5968e36fed47a2ff8516bcfd2248 (patch) | |
| tree | f1a933079afdfea73e76a187441733642489e2b0 /src/core/file_sys/directory_sdmc.cpp | |
| parent | 4ac4c3caf1ddcb645ef1ee877163eaf93cd5f1c5 (diff) | |
| parent | 11641b5e7913a90d2428d7a3ad04b9963e9fa278 (diff) | |
Merge pull request #192 from bunnei/fs-fix-paths
FileSys: Updates backend code to use FileSys::Path and fixes binary path types.
Diffstat (limited to 'src/core/file_sys/directory_sdmc.cpp')
| -rw-r--r-- | src/core/file_sys/directory_sdmc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/file_sys/directory_sdmc.cpp b/src/core/file_sys/directory_sdmc.cpp index fd558def9f..923ca6862a 100644 --- a/src/core/file_sys/directory_sdmc.cpp +++ b/src/core/file_sys/directory_sdmc.cpp @@ -15,11 +15,11 @@ namespace FileSys { -Directory_SDMC::Directory_SDMC(const Archive_SDMC* archive, const std::string& path) { +Directory_SDMC::Directory_SDMC(const Archive_SDMC* archive, const Path& path) { // TODO(Link Mauve): normalize path into an absolute path without "..", it can currently bypass // the root directory we set while opening the archive. // For example, opening /../../usr/bin can give the emulated program your installed programs. - std::string absolute_path = archive->GetMountPoint() + path; + std::string absolute_path = archive->GetMountPoint() + path.AsString(); FileUtil::ScanDirectoryTree(absolute_path, directory); children_iterator = directory.children.begin(); } |
