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/file_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/file_sdmc.cpp')
-rw-r--r-- | src/core/file_sys/file_sdmc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/file_sys/file_sdmc.cpp b/src/core/file_sys/file_sdmc.cpp index 26204392c..a4b90670a 100644 --- a/src/core/file_sys/file_sdmc.cpp +++ b/src/core/file_sys/file_sdmc.cpp @@ -15,11 +15,11 @@ namespace FileSys { -File_SDMC::File_SDMC(const Archive_SDMC* archive, const std::string& path, const Mode mode) { +File_SDMC::File_SDMC(const Archive_SDMC* archive, const Path& path, const Mode mode) { // 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 /../../etc/passwd can give the emulated program your users list. - this->path = archive->GetMountPoint() + path; + this->path = archive->GetMountPoint() + path.AsString(); this->mode.hex = mode.hex; } |