summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/file_sdmc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/file_sys/file_sdmc.cpp')
-rw-r--r--src/core/file_sys/file_sdmc.cpp4
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;
}