| 302 | } |
| 303 | |
| 304 | bool SetCurrentImageDir(const std::string& pszImageDir) |
| 305 | { |
| 306 | g_sCurrentDir = pszImageDir; |
| 307 | |
| 308 | if (!g_sCurrentDir.empty() && *g_sCurrentDir.rbegin() != PATH_SEPARATOR) |
| 309 | g_sCurrentDir += PATH_SEPARATOR; |
| 310 | |
| 311 | if (SetCurrentDirectory(g_sCurrentDir.c_str())) |
| 312 | return true; |
| 313 | |
| 314 | return false; |
| 315 | } |
| 316 | |
| 317 | Pravets& GetPravets(void) |
| 318 | { |
no outgoing calls
no test coverage detected