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/hle/service | |
| 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/hle/service')
| -rw-r--r-- | src/core/hle/service/fs_user.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/hle/service/fs_user.cpp b/src/core/hle/service/fs_user.cpp index f4b1a879c..95663b905 100644 --- a/src/core/hle/service/fs_user.cpp +++ b/src/core/hle/service/fs_user.cpp | |||
| @@ -159,7 +159,7 @@ void DeleteFile(Service::Interface* self) { | |||
| 159 | DEBUG_LOG(KERNEL, "type=%d size=%d data=%s", | 159 | DEBUG_LOG(KERNEL, "type=%d size=%d data=%s", |
| 160 | filename_type, filename_size, file_path.DebugStr().c_str()); | 160 | filename_type, filename_size, file_path.DebugStr().c_str()); |
| 161 | 161 | ||
| 162 | cmd_buff[1] = Kernel::DeleteFileFromArchive(archive_handle, file_path); | 162 | cmd_buff[1] = Kernel::DeleteFileFromArchive(archive_handle, file_path).raw; |
| 163 | 163 | ||
| 164 | DEBUG_LOG(KERNEL, "called"); | 164 | DEBUG_LOG(KERNEL, "called"); |
| 165 | } | 165 | } |
| @@ -201,7 +201,7 @@ void RenameFile(Service::Interface* self) { | |||
| 201 | src_filename_type, src_filename_size, src_file_path.DebugStr().c_str(), | 201 | src_filename_type, src_filename_size, src_file_path.DebugStr().c_str(), |
| 202 | dest_filename_type, dest_filename_size, dest_file_path.DebugStr().c_str()); | 202 | dest_filename_type, dest_filename_size, dest_file_path.DebugStr().c_str()); |
| 203 | 203 | ||
| 204 | cmd_buff[1] = Kernel::RenameFileBetweenArchives(src_archive_handle, src_file_path, dest_archive_handle, dest_file_path); | 204 | cmd_buff[1] = Kernel::RenameFileBetweenArchives(src_archive_handle, src_file_path, dest_archive_handle, dest_file_path).raw; |
| 205 | 205 | ||
| 206 | DEBUG_LOG(KERNEL, "called"); | 206 | DEBUG_LOG(KERNEL, "called"); |
| 207 | } | 207 | } |
| @@ -232,7 +232,7 @@ void DeleteDirectory(Service::Interface* self) { | |||
| 232 | DEBUG_LOG(KERNEL, "type=%d size=%d data=%s", | 232 | DEBUG_LOG(KERNEL, "type=%d size=%d data=%s", |
| 233 | dirname_type, dirname_size, dir_path.DebugStr().c_str()); | 233 | dirname_type, dirname_size, dir_path.DebugStr().c_str()); |
| 234 | 234 | ||
| 235 | cmd_buff[1] = Kernel::DeleteDirectoryFromArchive(archive_handle, dir_path); | 235 | cmd_buff[1] = Kernel::DeleteDirectoryFromArchive(archive_handle, dir_path).raw; |
| 236 | 236 | ||
| 237 | DEBUG_LOG(KERNEL, "called"); | 237 | DEBUG_LOG(KERNEL, "called"); |
| 238 | } | 238 | } |
| @@ -262,7 +262,7 @@ static void CreateDirectory(Service::Interface* self) { | |||
| 262 | 262 | ||
| 263 | DEBUG_LOG(KERNEL, "type=%d size=%d data=%s", dirname_type, dirname_size, dir_path.DebugStr().c_str()); | 263 | DEBUG_LOG(KERNEL, "type=%d size=%d data=%s", dirname_type, dirname_size, dir_path.DebugStr().c_str()); |
| 264 | 264 | ||
| 265 | cmd_buff[1] = Kernel::CreateDirectoryFromArchive(archive_handle, dir_path); | 265 | cmd_buff[1] = Kernel::CreateDirectoryFromArchive(archive_handle, dir_path).raw; |
| 266 | 266 | ||
| 267 | DEBUG_LOG(KERNEL, "called"); | 267 | DEBUG_LOG(KERNEL, "called"); |
| 268 | } | 268 | } |
| @@ -304,7 +304,7 @@ void RenameDirectory(Service::Interface* self) { | |||
| 304 | src_dirname_type, src_dirname_size, src_dir_path.DebugStr().c_str(), | 304 | src_dirname_type, src_dirname_size, src_dir_path.DebugStr().c_str(), |
| 305 | dest_dirname_type, dest_dirname_size, dest_dir_path.DebugStr().c_str()); | 305 | dest_dirname_type, dest_dirname_size, dest_dir_path.DebugStr().c_str()); |
| 306 | 306 | ||
| 307 | cmd_buff[1] = Kernel::RenameDirectoryBetweenArchives(src_archive_handle, src_dir_path, dest_archive_handle, dest_dir_path); | 307 | cmd_buff[1] = Kernel::RenameDirectoryBetweenArchives(src_archive_handle, src_dir_path, dest_archive_handle, dest_dir_path).raw; |
| 308 | 308 | ||
| 309 | DEBUG_LOG(KERNEL, "called"); | 309 | DEBUG_LOG(KERNEL, "called"); |
| 310 | } | 310 | } |