summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-07-14 17:57:22 +0200
committerSubv <subv2112@gmail.com>2018-07-14 17:57:22 +0200
commit7e5e4f8d7a8ca22e3217d8edf12e47dd7b2273fe (patch)
tree302cc30d0a66003a072d990e0670e79a1408ebda /src
parentMerge pull request #660 from Subv/depth_write (diff)
downloadyuzu-7e5e4f8d7a8ca22e3217d8edf12e47dd7b2273fe.tar
yuzu-7e5e4f8d7a8ca22e3217d8edf12e47dd7b2273fe.tar.gz
yuzu-7e5e4f8d7a8ca22e3217d8edf12e47dd7b2273fe.tar.bz2
yuzu-7e5e4f8d7a8ca22e3217d8edf12e47dd7b2273fe.tar.lz
yuzu-7e5e4f8d7a8ca22e3217d8edf12e47dd7b2273fe.tar.xz
yuzu-7e5e4f8d7a8ca22e3217d8edf12e47dd7b2273fe.tar.zst
yuzu-7e5e4f8d7a8ca22e3217d8edf12e47dd7b2273fe.zip
Diffstat (limited to 'src')
-rw-r--r--src/core/file_sys/disk_filesystem.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/file_sys/disk_filesystem.cpp b/src/core/file_sys/disk_filesystem.cpp
index 8c6f15bb5..d248c2df4 100644
--- a/src/core/file_sys/disk_filesystem.cpp
+++ b/src/core/file_sys/disk_filesystem.cpp
@@ -58,11 +58,13 @@ ResultVal<std::unique_ptr<StorageBackend>> Disk_FileSystem::OpenFile(const std::
}
ResultCode Disk_FileSystem::DeleteFile(const std::string& path) const {
- if (!FileUtil::Exists(path)) {
+ std::string full_path = base_directory + path;
+
+ if (!FileUtil::Exists(full_path)) {
return ERROR_PATH_NOT_FOUND;
}
- FileUtil::Delete(path);
+ FileUtil::Delete(full_path);
return RESULT_SUCCESS;
}