mirror of
https://github.com/debauchee/barrier.git
synced 2026-07-03 02:16:34 +08:00
Made daemon take full responsibility for logging #4128
This commit is contained in:
@@ -121,6 +121,24 @@ CArchFileWindows::getSystemDirectory()
|
||||
}
|
||||
}
|
||||
|
||||
std::string
|
||||
CArchFileWindows::getInstalledDirectory()
|
||||
{
|
||||
char fileNameBuffer[MAX_PATH];
|
||||
GetModuleFileName(NULL, fileNameBuffer, MAX_PATH);
|
||||
std::string fileName(fileNameBuffer);
|
||||
size_t lastSlash = fileName.find_last_of("\\");
|
||||
fileName = fileName.substr(0, lastSlash);
|
||||
|
||||
return fileName;
|
||||
}
|
||||
|
||||
std::string
|
||||
CArchFileWindows::getLogDirectory()
|
||||
{
|
||||
return getInstalledDirectory();
|
||||
}
|
||||
|
||||
std::string
|
||||
CArchFileWindows::concatPath(const std::string& prefix,
|
||||
const std::string& suffix)
|
||||
|
||||
Reference in New Issue
Block a user