diff options
author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2015-05-07 03:59:59 +0200 |
---|---|---|
committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2015-05-07 04:50:08 +0200 |
commit | bf12f270b3c74f694c789a57cc69f414753ca080 (patch) | |
tree | a80e6ee9863a46966fe43496f1ccbbfa07cc98aa /src/common/file_util.cpp | |
parent | Clean-up includes (diff) | |
download | yuzu-bf12f270b3c74f694c789a57cc69f414753ca080.tar yuzu-bf12f270b3c74f694c789a57cc69f414753ca080.tar.gz yuzu-bf12f270b3c74f694c789a57cc69f414753ca080.tar.bz2 yuzu-bf12f270b3c74f694c789a57cc69f414753ca080.tar.lz yuzu-bf12f270b3c74f694c789a57cc69f414753ca080.tar.xz yuzu-bf12f270b3c74f694c789a57cc69f414753ca080.tar.zst yuzu-bf12f270b3c74f694c789a57cc69f414753ca080.zip |
Diffstat (limited to 'src/common/file_util.cpp')
-rw-r--r-- | src/common/file_util.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/file_util.cpp b/src/common/file_util.cpp index 4ef4918d7..25d7d4b9f 100644 --- a/src/common/file_util.cpp +++ b/src/common/file_util.cpp @@ -589,7 +589,7 @@ std::string GetCurrentDir() { char *dir; // Get the current working directory (getcwd uses malloc) - if (!(dir = __getcwd(nullptr, 0))) { + if (!(dir = getcwd(nullptr, 0))) { LOG_ERROR(Common_Filesystem, "GetCurrentDirectory failed: %s", GetLastErrorMsg()); @@ -603,7 +603,7 @@ std::string GetCurrentDir() // Sets the current directory to the given directory bool SetCurrentDir(const std::string &directory) { - return __chdir(directory.c_str()) == 0; + return chdir(directory.c_str()) == 0; } #if defined(__APPLE__) |