diff options
| author | fires.gc <fires.gc@gmail.com> | 2009-02-24 07:18:08 +0000 |
|---|---|---|
| committer | fires.gc <fires.gc@gmail.com> | 2009-02-24 07:18:08 +0000 |
| commit | 595dc42dcb03949164014fe52ceaa69dfba4b51e (patch) | |
| tree | a6794a5bb7c1eded06401d0bb15215fde723585a /Source/Core/Common/Src/FileUtil.cpp | |
| parent | f4f0fc9c00be3cff7cd796fad8011327cdc05414 (diff) | |
added check if "file open dialog" changes the working directory. i dunno why but some times the file open dialog changes my working directory... the code is for further investigations
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2408 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/Common/Src/FileUtil.cpp')
| -rw-r--r-- | Source/Core/Common/Src/FileUtil.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/Core/Common/Src/FileUtil.cpp b/Source/Core/Common/Src/FileUtil.cpp index 0edb09e330..e371ab78e5 100644 --- a/Source/Core/Common/Src/FileUtil.cpp +++ b/Source/Core/Common/Src/FileUtil.cpp @@ -547,4 +547,10 @@ void GetCurrentDirectory(std::string& _rDirectory) _rDirectory = getcwd(tmpBuffer, MAX_PATH); } +bool SetCurrentDirectory(const std::string& _rDirectory) +{ + return chdir(_rDirectory.c_str()) == 0; +} + + } // namespace |
