diff options
| author | bunnei <bunneidev@gmail.com> | 2014-11-11 19:27:35 -0500 |
|---|---|---|
| committer | bunnei <bunneidev@gmail.com> | 2014-11-17 21:49:24 -0500 |
| commit | a3107a6b571dedb8828b20ddcb709ec17db9715a (patch) | |
| tree | 367848a8e6e445e062f10378d45aa6a4abfcb63b /src/core/file_sys/directory_sdmc.cpp | |
| parent | c04a04189ad9902e95d6dce5c6bb712cc8342f56 (diff) | |
FileSys: Updated backend code to use FileSys::Path instead of string for paths.
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 fd558def9..923ca6862 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(); } |
