mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-28 15:28:38 +00:00
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
This commit is contained in:
parent
f4f0fc9c00
commit
595dc42dcb
3 changed files with 20 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue