summaryrefslogtreecommitdiffstats
path: root/src/common/file_util.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-05-23 20:24:11 +0200
committerLioncash <mathew1800@gmail.com>2019-05-23 20:24:13 +0200
commit11e9bee91d645cba69e936916394a0a03875c878 (patch)
treef27f82a7cfedb748013fa0d6f236f8dd3583d7e2 /src/common/file_util.h
parentcommon/file_util: Remove duplicated documentation comments (diff)
downloadyuzu-11e9bee91d645cba69e936916394a0a03875c878.tar
yuzu-11e9bee91d645cba69e936916394a0a03875c878.tar.gz
yuzu-11e9bee91d645cba69e936916394a0a03875c878.tar.bz2
yuzu-11e9bee91d645cba69e936916394a0a03875c878.tar.lz
yuzu-11e9bee91d645cba69e936916394a0a03875c878.tar.xz
yuzu-11e9bee91d645cba69e936916394a0a03875c878.tar.zst
yuzu-11e9bee91d645cba69e936916394a0a03875c878.zip
Diffstat (limited to 'src/common/file_util.h')
-rw-r--r--src/common/file_util.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/file_util.h b/src/common/file_util.h
index c325f5b49..cde7ddf2d 100644
--- a/src/common/file_util.h
+++ b/src/common/file_util.h
@@ -9,6 +9,7 @@
#include <fstream>
#include <functional>
#include <limits>
+#include <optional>
#include <string>
#include <string_view>
#include <type_traits>
@@ -118,7 +119,7 @@ u64 ScanDirectoryTree(const std::string& directory, FSTEntry& parent_entry,
bool DeleteDirRecursively(const std::string& directory, unsigned int recursion = 256);
// Returns the current directory
-std::string GetCurrentDir();
+std::optional<std::string> GetCurrentDir();
// Create directory and copy contents (does not overwrite existing files)
void CopyDir(const std::string& source_path, const std::string& dest_path);