diff options
author | bunnei <bunneidev@gmail.com> | 2014-11-18 04:26:54 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2014-11-18 04:26:54 +0100 |
commit | b66859714bda5968e36fed47a2ff8516bcfd2248 (patch) | |
tree | f1a933079afdfea73e76a187441733642489e2b0 /src/core/file_sys/archive_sdmc.cpp | |
parent | Merge pull request #201 from archshift/boss (diff) | |
parent | Archive: Fixed to not destroy archive handle on close. (diff) | |
download | yuzu-b66859714bda5968e36fed47a2ff8516bcfd2248.tar yuzu-b66859714bda5968e36fed47a2ff8516bcfd2248.tar.gz yuzu-b66859714bda5968e36fed47a2ff8516bcfd2248.tar.bz2 yuzu-b66859714bda5968e36fed47a2ff8516bcfd2248.tar.lz yuzu-b66859714bda5968e36fed47a2ff8516bcfd2248.tar.xz yuzu-b66859714bda5968e36fed47a2ff8516bcfd2248.tar.zst yuzu-b66859714bda5968e36fed47a2ff8516bcfd2248.zip |
Diffstat (limited to 'src/core/file_sys/archive_sdmc.cpp')
-rw-r--r-- | src/core/file_sys/archive_sdmc.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/file_sys/archive_sdmc.cpp b/src/core/file_sys/archive_sdmc.cpp index 66931e93e..ecdb7f211 100644 --- a/src/core/file_sys/archive_sdmc.cpp +++ b/src/core/file_sys/archive_sdmc.cpp @@ -49,8 +49,8 @@ bool Archive_SDMC::Initialize() { * @param mode Mode to open the file with * @return Opened file, or nullptr */ -std::unique_ptr<File> Archive_SDMC::OpenFile(const std::string& path, const Mode mode) const { - DEBUG_LOG(FILESYS, "called path=%s mode=%d", path.c_str(), mode); +std::unique_ptr<File> Archive_SDMC::OpenFile(const Path& path, const Mode mode) const { + DEBUG_LOG(FILESYS, "called path=%s mode=%d", path.DebugStr().c_str(), mode); File_SDMC* file = new File_SDMC(this, path, mode); if (!file->Open()) return nullptr; @@ -62,8 +62,8 @@ std::unique_ptr<File> Archive_SDMC::OpenFile(const std::string& path, const Mode * @param path Path relative to the archive * @return Whether the directory could be created */ -bool Archive_SDMC::CreateDirectory(const std::string& path) const { - return FileUtil::CreateDir(GetMountPoint() + path); +bool Archive_SDMC::CreateDirectory(const Path& path) const { + return FileUtil::CreateDir(GetMountPoint() + path.AsString()); } /** @@ -71,8 +71,8 @@ bool Archive_SDMC::CreateDirectory(const std::string& path) const { * @param path Path relative to the archive * @return Opened directory, or nullptr */ -std::unique_ptr<Directory> Archive_SDMC::OpenDirectory(const std::string& path) const { - DEBUG_LOG(FILESYS, "called path=%s", path.c_str()); +std::unique_ptr<Directory> Archive_SDMC::OpenDirectory(const Path& path) const { + DEBUG_LOG(FILESYS, "called path=%s", path.DebugStr().c_str()); Directory_SDMC* directory = new Directory_SDMC(this, path); return std::unique_ptr<Directory>(directory); } |