mirror of
https://git.h3cjp.net/H3cJP/citra.git
synced 2024-11-27 22:42:47 +00: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
|
@ -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];
|
||||
|
|
|
@ -133,7 +133,7 @@ std::string GetBundleDirectory();
|
|||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
std::string& GetExeDirectory();
|
||||
const std::string& GetExeDirectory();
|
||||
std::string AppDataRoamingDirectory();
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue