diff options
| author | 2018-07-19 08:47:06 -0700 | |
|---|---|---|
| committer | 2018-07-19 08:47:06 -0700 | |
| commit | 04f7a7036af107158195c8f8ea5e1ce58941141a (patch) | |
| tree | 36fd7b4e013e1cc9d225ae2dfa9604eb7ef90618 /src/common/file_util.cpp | |
| parent | Merge pull request #704 from lioncash/string (diff) | |
| parent | file_util: return string by const reference for GetExeDirectory() (diff) | |
| download | yuzu-04f7a7036af107158195c8f8ea5e1ce58941141a.tar.gz yuzu-04f7a7036af107158195c8f8ea5e1ce58941141a.tar.xz yuzu-04f7a7036af107158195c8f8ea5e1ce58941141a.zip | |
Merge pull request #705 from lioncash/string-ref
file_util: return string by const reference for GetExeDirectory()
Diffstat (limited to 'src/common/file_util.cpp')
| -rw-r--r-- | src/common/file_util.cpp | 2 |
1 files changed, 1 insertions, 1 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() { | |||
| 592 | #endif | 592 | #endif |
| 593 | 593 | ||
| 594 | #ifdef _WIN32 | 594 | #ifdef _WIN32 |
| 595 | std::string& GetExeDirectory() { | 595 | const std::string& GetExeDirectory() { |
| 596 | static std::string exe_path; | 596 | static std::string exe_path; |
| 597 | if (exe_path.empty()) { | 597 | if (exe_path.empty()) { |
| 598 | wchar_t wchar_exe_path[2048]; | 598 | wchar_t wchar_exe_path[2048]; |