diff options
author | bunnei <bunneidev@gmail.com> | 2014-12-05 04:07:47 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2014-12-05 04:07:47 +0100 |
commit | 5056329a8003115f61859b97c2fc6ef2f460a0d3 (patch) | |
tree | 9434ac214d06a5d55ff20848f57cb981647991dc /src/core/file_sys/archive_sdmc.cpp | |
parent | Merge pull request #248 from lioncash/kernel (diff) | |
parent | Updated archive.cpp functions for proper error handling (diff) | |
download | yuzu-5056329a8003115f61859b97c2fc6ef2f460a0d3.tar yuzu-5056329a8003115f61859b97c2fc6ef2f460a0d3.tar.gz yuzu-5056329a8003115f61859b97c2fc6ef2f460a0d3.tar.bz2 yuzu-5056329a8003115f61859b97c2fc6ef2f460a0d3.tar.lz yuzu-5056329a8003115f61859b97c2fc6ef2f460a0d3.tar.xz yuzu-5056329a8003115f61859b97c2fc6ef2f460a0d3.tar.zst yuzu-5056329a8003115f61859b97c2fc6ef2f460a0d3.zip |
Diffstat (limited to 'src/core/file_sys/archive_sdmc.cpp')
-rw-r--r-- | src/core/file_sys/archive_sdmc.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/file_sys/archive_sdmc.cpp b/src/core/file_sys/archive_sdmc.cpp index 789212b17..169ab0f1c 100644 --- a/src/core/file_sys/archive_sdmc.cpp +++ b/src/core/file_sys/archive_sdmc.cpp @@ -66,6 +66,10 @@ bool Archive_SDMC::DeleteFile(const FileSys::Path& path) const { return FileUtil::Delete(GetMountPoint() + path.AsString()); } +bool Archive_SDMC::RenameFile(const FileSys::Path& src_path, const FileSys::Path& dest_path) const { + return FileUtil::Rename(GetMountPoint() + src_path.AsString(), GetMountPoint() + dest_path.AsString()); +} + /** * Delete a directory specified by its path * @param path Path relative to the archive @@ -84,6 +88,10 @@ bool Archive_SDMC::CreateDirectory(const Path& path) const { return FileUtil::CreateDir(GetMountPoint() + path.AsString()); } +bool Archive_SDMC::RenameDirectory(const FileSys::Path& src_path, const FileSys::Path& dest_path) const { + return FileUtil::Rename(GetMountPoint() + src_path.AsString(), GetMountPoint() + dest_path.AsString()); +} + /** * Open a directory specified by its path * @param path Path relative to the archive |