summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2018-08-03 17:44:40 +0200
committerZach Hilman <zachhilman@gmail.com>2018-08-09 03:18:45 +0200
commitb36dee364e37c4b3295288d206f81dd6f1a03480 (patch)
tree493d20aff3cc7cac777db23b40f9dd3139391273 /src/core
parentMerge pull request #976 from bunnei/shader-imm (diff)
downloadyuzu-b36dee364e37c4b3295288d206f81dd6f1a03480.tar
yuzu-b36dee364e37c4b3295288d206f81dd6f1a03480.tar.gz
yuzu-b36dee364e37c4b3295288d206f81dd6f1a03480.tar.bz2
yuzu-b36dee364e37c4b3295288d206f81dd6f1a03480.tar.lz
yuzu-b36dee364e37c4b3295288d206f81dd6f1a03480.tar.xz
yuzu-b36dee364e37c4b3295288d206f81dd6f1a03480.tar.zst
yuzu-b36dee364e37c4b3295288d206f81dd6f1a03480.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/service/filesystem/filesystem.cpp2
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
ResultCode VfsDirectoryServiceWrapper::DeleteFile(const std::string& path_) const {
std::string path(FileUtil::SanitizePath(path_));
auto dir = GetDirectoryRelativeWrapped(backing, FileUtil::GetParentPath(path));
- if (path == "/" || path == "\\") {
+ if (path.empty()) {
// TODO(DarkLordZach): Why do games call this and what should it do? Works as is but...
return RESULT_SUCCESS;
}