diff options
author | archshift <admin@archshift.com> | 2014-11-24 08:20:04 +0100 |
---|---|---|
committer | archshift <admin@archshift.com> | 2014-11-25 00:09:11 +0100 |
commit | 45afc15aa6b9b1798a321bc053171deb765d7681 (patch) | |
tree | 54da02809c463f89462c3b29a48fb1564f699f01 /src/core/file_sys/archive_sdmc.cpp | |
parent | Merge pull request #147 from yuriks/error-codes (diff) | |
download | yuzu-45afc15aa6b9b1798a321bc053171deb765d7681.tar yuzu-45afc15aa6b9b1798a321bc053171deb765d7681.tar.gz yuzu-45afc15aa6b9b1798a321bc053171deb765d7681.tar.bz2 yuzu-45afc15aa6b9b1798a321bc053171deb765d7681.tar.lz yuzu-45afc15aa6b9b1798a321bc053171deb765d7681.tar.xz yuzu-45afc15aa6b9b1798a321bc053171deb765d7681.tar.zst yuzu-45afc15aa6b9b1798a321bc053171deb765d7681.zip |
Diffstat (limited to 'src/core/file_sys/archive_sdmc.cpp')
-rw-r--r-- | src/core/file_sys/archive_sdmc.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/file_sys/archive_sdmc.cpp b/src/core/file_sys/archive_sdmc.cpp index c2ffcd40d..24bc43a02 100644 --- a/src/core/file_sys/archive_sdmc.cpp +++ b/src/core/file_sys/archive_sdmc.cpp @@ -67,6 +67,16 @@ bool Archive_SDMC::DeleteFile(const FileSys::Path& path) const { } /** + * Rename a File specified by its path + * @param src_path Source path relative to the archive + * @param dest_path Destination path relative to the archive + * @return Whether rename succeeded + */ +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 * @return Whether the directory could be deleted |