|
@@ -592,7 +592,7 @@ std::string GetBundleDirectory() {
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef _WIN32
|
|
#ifdef _WIN32
|
|
|
-std::string& GetExeDirectory() {
|
|
|
|
|
|
|
+const std::string& GetExeDirectory() {
|
|
|
static std::string exe_path;
|
|
static std::string exe_path;
|
|
|
if (exe_path.empty()) {
|
|
if (exe_path.empty()) {
|
|
|
wchar_t wchar_exe_path[2048];
|
|
wchar_t wchar_exe_path[2048];
|