Returns the path of the current working directory */
| 96 | |
| 97 | /** Returns the path of the current working directory */ |
| 98 | std::string Path_GetWorkingDirectory() |
| 99 | { |
| 100 | std::string sPath; |
| 101 | #if defined( _WIN32 ) |
| 102 | wchar_t buf[MAX_UNICODE_PATH]; |
| 103 | sPath = UTF16to8( _wgetcwd( buf, MAX_UNICODE_PATH ) ); |
| 104 | #else |
| 105 | char buf[ 1024 ]; |
| 106 | sPath = getcwd( buf, sizeof( buf ) ); |
| 107 | #endif |
| 108 | return sPath; |
| 109 | } |
| 110 | |
| 111 | /** Sets the path of the current working directory. Returns true if this was successful. */ |
| 112 | bool Path_SetWorkingDirectory( const std::string & sPath ) |
no test coverage detected