diff options
author | bunnei <bunneidev@gmail.com> | 2014-11-12 01:27:35 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2014-11-18 03:49:24 +0100 |
commit | a3107a6b571dedb8828b20ddcb709ec17db9715a (patch) | |
tree | 367848a8e6e445e062f10378d45aa6a4abfcb63b /src/core/file_sys/directory_sdmc.cpp | |
parent | FileSys: Added DebugStr method to Path class. (diff) | |
download | yuzu-a3107a6b571dedb8828b20ddcb709ec17db9715a.tar yuzu-a3107a6b571dedb8828b20ddcb709ec17db9715a.tar.gz yuzu-a3107a6b571dedb8828b20ddcb709ec17db9715a.tar.bz2 yuzu-a3107a6b571dedb8828b20ddcb709ec17db9715a.tar.lz yuzu-a3107a6b571dedb8828b20ddcb709ec17db9715a.tar.xz yuzu-a3107a6b571dedb8828b20ddcb709ec17db9715a.tar.zst yuzu-a3107a6b571dedb8828b20ddcb709ec17db9715a.zip |
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(); } |