diff options
| author | 2014-11-24 15:45:20 -0800 | |
|---|---|---|
| committer | 2014-12-03 22:50:44 -0800 | |
| commit | 139a4d91d9e8482d8ceeef591b08ab20b0f7e8ee (patch) | |
| tree | c30714dea3bff0ac20e171509427fabfec26ba17 /src/core/file_sys | |
| parent | Implemented RenameDirectory in FS:USER (diff) | |
| download | yuzu-139a4d91d9e8482d8ceeef591b08ab20b0f7e8ee.tar.gz yuzu-139a4d91d9e8482d8ceeef591b08ab20b0f7e8ee.tar.xz yuzu-139a4d91d9e8482d8ceeef591b08ab20b0f7e8ee.zip | |
Updated archive.cpp functions for proper error handling
Diffstat (limited to 'src/core/file_sys')
| -rw-r--r-- | src/core/file_sys/archive_romfs.cpp | 12 | ||||
| -rw-r--r-- | src/core/file_sys/archive_sdmc.cpp | 12 |
2 files changed, 0 insertions, 24 deletions
diff --git a/src/core/file_sys/archive_romfs.cpp b/src/core/file_sys/archive_romfs.cpp index d0ca7d380..8c2dbeda5 100644 --- a/src/core/file_sys/archive_romfs.cpp +++ b/src/core/file_sys/archive_romfs.cpp | |||
| @@ -43,12 +43,6 @@ bool Archive_RomFS::DeleteFile(const FileSys::Path& path) const { | |||
| 43 | return false; | 43 | return false; |
| 44 | } | 44 | } |
| 45 | 45 | ||
| 46 | /** | ||
| 47 | * Rename a File specified by its path | ||
| 48 | * @param src_path Source path relative to the archive | ||
| 49 | * @param dest_path Destination path relative to the archive | ||
| 50 | * @return Whether rename succeeded | ||
| 51 | */ | ||
| 52 | bool Archive_RomFS::RenameFile(const FileSys::Path& src_path, const FileSys::Path& dest_path) const { | 46 | bool Archive_RomFS::RenameFile(const FileSys::Path& src_path, const FileSys::Path& dest_path) const { |
| 53 | ERROR_LOG(FILESYS, "Attempted to rename a file within ROMFS."); | 47 | ERROR_LOG(FILESYS, "Attempted to rename a file within ROMFS."); |
| 54 | return false; | 48 | return false; |
| @@ -74,12 +68,6 @@ bool Archive_RomFS::CreateDirectory(const Path& path) const { | |||
| 74 | return false; | 68 | return false; |
| 75 | } | 69 | } |
| 76 | 70 | ||
| 77 | /** | ||
| 78 | * Rename a Directory specified by its path | ||
| 79 | * @param src_path Source path relative to the archive | ||
| 80 | * @param dest_path Destination path relative to the archive | ||
| 81 | * @return Whether rename succeeded | ||
| 82 | */ | ||
| 83 | bool Archive_RomFS::RenameDirectory(const FileSys::Path& src_path, const FileSys::Path& dest_path) const { | 71 | bool Archive_RomFS::RenameDirectory(const FileSys::Path& src_path, const FileSys::Path& dest_path) const { |
| 84 | ERROR_LOG(FILESYS, "Attempted to rename a file within ROMFS."); | 72 | ERROR_LOG(FILESYS, "Attempted to rename a file within ROMFS."); |
| 85 | return false; | 73 | return false; |
diff --git a/src/core/file_sys/archive_sdmc.cpp b/src/core/file_sys/archive_sdmc.cpp index c8958a0eb..a740a3d59 100644 --- a/src/core/file_sys/archive_sdmc.cpp +++ b/src/core/file_sys/archive_sdmc.cpp | |||
| @@ -66,12 +66,6 @@ bool Archive_SDMC::DeleteFile(const FileSys::Path& path) const { | |||
| 66 | return FileUtil::Delete(GetMountPoint() + path.AsString()); | 66 | return FileUtil::Delete(GetMountPoint() + path.AsString()); |
| 67 | } | 67 | } |
| 68 | 68 | ||
| 69 | /** | ||
| 70 | * Rename a File specified by its path | ||
| 71 | * @param src_path Source path relative to the archive | ||
| 72 | * @param dest_path Destination path relative to the archive | ||
| 73 | * @return Whether rename succeeded | ||
| 74 | */ | ||
| 75 | bool Archive_SDMC::RenameFile(const FileSys::Path& src_path, const FileSys::Path& dest_path) const { | 69 | bool Archive_SDMC::RenameFile(const FileSys::Path& src_path, const FileSys::Path& dest_path) const { |
| 76 | return FileUtil::Rename(GetMountPoint() + src_path.AsString(), GetMountPoint() + dest_path.AsString()); | 70 | return FileUtil::Rename(GetMountPoint() + src_path.AsString(), GetMountPoint() + dest_path.AsString()); |
| 77 | } | 71 | } |
| @@ -94,12 +88,6 @@ bool Archive_SDMC::CreateDirectory(const Path& path) const { | |||
| 94 | return FileUtil::CreateDir(GetMountPoint() + path.AsString()); | 88 | return FileUtil::CreateDir(GetMountPoint() + path.AsString()); |
| 95 | } | 89 | } |
| 96 | 90 | ||
| 97 | /** | ||
| 98 | * Rename a Directory specified by its path | ||
| 99 | * @param src_path Source path relative to the archive | ||
| 100 | * @param dest_path Destination path relative to the archive | ||
| 101 | * @return Whether rename succeeded | ||
| 102 | */ | ||
| 103 | bool Archive_SDMC::RenameDirectory(const FileSys::Path& src_path, const FileSys::Path& dest_path) const { | 91 | bool Archive_SDMC::RenameDirectory(const FileSys::Path& src_path, const FileSys::Path& dest_path) const { |
| 104 | return FileUtil::Rename(GetMountPoint() + src_path.AsString(), GetMountPoint() + dest_path.AsString()); | 92 | return FileUtil::Rename(GetMountPoint() + src_path.AsString(), GetMountPoint() + dest_path.AsString()); |
| 105 | } | 93 | } |