summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-07-19 17:47:06 +0200
committerGitHub <noreply@github.com>2018-07-19 17:47:06 +0200
commit04f7a7036af107158195c8f8ea5e1ce58941141a (patch)
tree36fd7b4e013e1cc9d225ae2dfa9604eb7ef90618
parentMerge pull request #704 from lioncash/string (diff)
parentfile_util: return string by const reference for GetExeDirectory() (diff)
downloadyuzu-04f7a7036af107158195c8f8ea5e1ce58941141a.tar
yuzu-04f7a7036af107158195c8f8ea5e1ce58941141a.tar.gz
yuzu-04f7a7036af107158195c8f8ea5e1ce58941141a.tar.bz2
yuzu-04f7a7036af107158195c8f8ea5e1ce58941141a.tar.lz
yuzu-04f7a7036af107158195c8f8ea5e1ce58941141a.tar.xz
yuzu-04f7a7036af107158195c8f8ea5e1ce58941141a.tar.zst
yuzu-04f7a7036af107158195c8f8ea5e1ce58941141a.zip
-rw-r--r--src/common/file_util.cpp2
-rw-r--r--src/common/file_util.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/common/file_util.cpp b/src/common/file_util.cpp
index bf955386c..c882ab39f 100644
--- a/src/common/file_util.cpp
+++ b/src/common/file_util.cpp
@@ -592,7 +592,7 @@ std::string GetBundleDirectory() {
#endif
#ifdef _WIN32
-std::string& GetExeDirectory() {
+const std::string& GetExeDirectory() {
static std::string exe_path;
if (exe_path.empty()) {
wchar_t wchar_exe_path[2048];
diff --git a/src/common/file_util.h b/src/common/file_util.h
index 026c84d94..1f38b1560 100644
--- a/src/common/file_util.h
+++ b/src/common/file_util.h
@@ -133,7 +133,7 @@ std::string GetBundleDirectory();
#endif
#ifdef _WIN32
-std::string& GetExeDirectory();
+const std::string& GetExeDirectory();
std::string AppDataRoamingDirectory();
#endif