| 30 | } |
| 31 | |
| 32 | std::string getSettingsFilePath() { |
| 33 | WIN32_FIND_DATA findSettingsFileData; |
| 34 | HANDLE hFind; |
| 35 | |
| 36 | // Build the path to the settings file. |
| 37 | std::string path = getRootDirectory().append("\\settings.txt"); |
| 38 | |
| 39 | // Scan the path for the settings file. |
| 40 | hFind = FindFirstFileA(path.c_str(), &findSettingsFileData); |
| 41 | |
| 42 | if (hFind == INVALID_HANDLE_VALUE) |
| 43 | { |
| 44 | LOG_MSG("[aliasIsolation::utilities] Non-fatal Error - Failed to find settings file at \"%s\"!\n", path.c_str()); |
| 45 | } |
| 46 | else |
| 47 | { |
| 48 | LOG_MSG("[aliasIsolation::utilities] Located settings file at \"%s\".\n", path.c_str()); |
| 49 | } |
| 50 | |
| 51 | return path; |
| 52 | } |
| 53 | |
| 54 | std::string getDataFilePath(std::string file, bool critical) { |
| 55 | WIN32_FIND_DATA findDataFileData; |
no test coverage detected