Service/FS: implement IFileSystem::RenameFile

This commit is contained in:
mailwl
2018-04-24 10:56:05 +03:00
parent 07dc0bbf3e
commit a0179e5ca5
6 changed files with 36 additions and 8 deletions

View File

@ -27,7 +27,8 @@ ResultCode RomFS_FileSystem::DeleteFile(const std::string& path) const {
return ResultCode(-1);
}
ResultCode RomFS_FileSystem::RenameFile(const Path& src_path, const Path& dest_path) const {
ResultCode RomFS_FileSystem::RenameFile(const std::string& src_path,
const std::string& dest_path) const {
LOG_CRITICAL(Service_FS, "Attempted to rename a file within an ROMFS archive (%s).",
GetName().c_str());
// TODO(wwylele): Use correct error code