diff options
| author | 2018-08-03 11:44:40 -0400 | |
|---|---|---|
| committer | 2018-08-08 21:18:45 -0400 | |
| commit | b36dee364e37c4b3295288d206f81dd6f1a03480 (patch) | |
| tree | 493d20aff3cc7cac777db23b40f9dd3139391273 /src | |
| parent | Merge pull request #976 from bunnei/shader-imm (diff) | |
| download | yuzu-b36dee364e37c4b3295288d206f81dd6f1a03480.tar.gz yuzu-b36dee364e37c4b3295288d206f81dd6f1a03480.tar.xz yuzu-b36dee364e37c4b3295288d206f81dd6f1a03480.zip | |
filesystem: Remove unnecessary if conditions
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/filesystem/filesystem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/filesystem/filesystem.cpp b/src/core/hle/service/filesystem/filesystem.cpp index e17d637e4..9b87e3484 100644 --- a/src/core/hle/service/filesystem/filesystem.cpp +++ b/src/core/hle/service/filesystem/filesystem.cpp | |||
| @@ -59,7 +59,7 @@ ResultCode VfsDirectoryServiceWrapper::CreateFile(const std::string& path_, u64 | |||
| 59 | ResultCode VfsDirectoryServiceWrapper::DeleteFile(const std::string& path_) const { | 59 | ResultCode VfsDirectoryServiceWrapper::DeleteFile(const std::string& path_) const { |
| 60 | std::string path(FileUtil::SanitizePath(path_)); | 60 | std::string path(FileUtil::SanitizePath(path_)); |
| 61 | auto dir = GetDirectoryRelativeWrapped(backing, FileUtil::GetParentPath(path)); | 61 | auto dir = GetDirectoryRelativeWrapped(backing, FileUtil::GetParentPath(path)); |
| 62 | if (path == "/" || path == "\\") { | 62 | if (path.empty()) { |
| 63 | // TODO(DarkLordZach): Why do games call this and what should it do? Works as is but... | 63 | // TODO(DarkLordZach): Why do games call this and what should it do? Works as is but... |
| 64 | return RESULT_SUCCESS; | 64 | return RESULT_SUCCESS; |
| 65 | } | 65 | } |