MCPcopy Create free account
hub / github.com/aliasIsolation/aliasIsolation / getSettingsFilePath

Function getSettingsFilePath

src/dll/utilities.cpp:32–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32std::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
54std::string getDataFilePath(std::string file, bool critical) {
55 WIN32_FIND_DATA findDataFileData;

Callers 1

DllMainFunction · 0.85

Calls 1

getRootDirectoryFunction · 0.85

Tested by

no test coverage detected