mirror of
https://github.com/debauchee/barrier.git
synced 2026-07-05 19:36:16 +08:00
added certificate generate #4168
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user