added certificate generate #4168

This commit is contained in:
XinyuHou
2015-02-11 17:28:56 +00:00
parent 03ee40891e
commit b9c5eb2e6f
16 changed files with 315 additions and 58 deletions

View File

@@ -142,8 +142,24 @@ ArchFileWindows::getLogDirectory()
std::string
ArchFileWindows::getPluginDirectory()
{
std::string dir = getUserDirectory();
dir.append("\\Synergy\\Plugins");
std::string dir = getProfileDirectory();
dir.append("\\Plugins");
return dir;
}
std::string
ArchFileWindows::getProfileDirectory()
{
TCHAR result[MAX_PATH];
std::string dir;
if (SUCCEEDED(SHGetFolderPath(NULL, CSIDL_LOCAL_APPDATA, NULL, 0, result))) {
dir = result;
}
else {
dir = getUserDirectory();
}
dir.append("\\Synergy");
return dir;
}