summaryrefslogtreecommitdiffstats
path: root/src/common/file_util.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-12-09 00:36:49 +0100
committerLioncash <mathew1800@gmail.com>2020-12-09 00:36:53 +0100
commit0e54aa17e64a5c5b62d60a70414742be29eccff9 (patch)
tree13c55de6081891fa19afe4526fa83328520c9026 /src/common/file_util.h
parentMerge pull request #5171 from lat9nq/ci-unicorn-cleanup (diff)
downloadyuzu-0e54aa17e64a5c5b62d60a70414742be29eccff9.tar
yuzu-0e54aa17e64a5c5b62d60a70414742be29eccff9.tar.gz
yuzu-0e54aa17e64a5c5b62d60a70414742be29eccff9.tar.bz2
yuzu-0e54aa17e64a5c5b62d60a70414742be29eccff9.tar.lz
yuzu-0e54aa17e64a5c5b62d60a70414742be29eccff9.tar.xz
yuzu-0e54aa17e64a5c5b62d60a70414742be29eccff9.tar.zst
yuzu-0e54aa17e64a5c5b62d60a70414742be29eccff9.zip
Diffstat (limited to '')
-rw-r--r--src/common/file_util.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/common/file_util.h b/src/common/file_util.h
index 840cde2a6..be0906434 100644
--- a/src/common/file_util.h
+++ b/src/common/file_util.h
@@ -6,6 +6,7 @@
#include <array>
#include <cstdio>
+#include <filesystem>
#include <fstream>
#include <functional>
#include <limits>
@@ -47,11 +48,11 @@ struct FSTEntry {
std::vector<FSTEntry> children;
};
-// Returns true if file filename exists
-[[nodiscard]] bool Exists(const std::string& filename);
+// Returns true if the exists
+[[nodiscard]] bool Exists(const std::filesystem::path& path);
-// Returns true if filename is a directory
-[[nodiscard]] bool IsDirectory(const std::string& filename);
+// Returns true if path is a directory
+[[nodiscard]] bool IsDirectory(const std::filesystem::path& path);
// Returns the size of filename (64bit)
[[nodiscard]] u64 GetSize(const std::string& filename);