mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-09-07 10:29:07 +01:00
Merge pull request #705 from lioncash/string-ref
file_util: return string by const reference for GetExeDirectory()
This commit is contained in:
commit
04f7a7036a
2 changed files with 2 additions and 2 deletions
|
@ -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];
|
||||||
|
|
|
@ -133,7 +133,7 @@ std::string GetBundleDirectory();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
std::string& GetExeDirectory();
|
const std::string& GetExeDirectory();
|
||||||
std::string AppDataRoamingDirectory();
|
std::string AppDataRoamingDirectory();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue