mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-12 10:28:08 +00:00
[idd] debug: log to C:\ProgramData\Looking Glass (IDD)
This commit is contained in:
@@ -43,16 +43,7 @@ void CDebug::Init(const char * name)
|
||||
if (IsDebuggerPresent())
|
||||
return;
|
||||
|
||||
// get the system temp directory
|
||||
char tempPath[MAX_PATH];
|
||||
DWORD pathLen = GetTempPathA(sizeof(tempPath), tempPath);
|
||||
if (pathLen == 0)
|
||||
{
|
||||
DEBUG_ERROR_HR(GetLastError(), "Failed to get the temp path");
|
||||
return;
|
||||
}
|
||||
|
||||
std::string folder = tempPath;
|
||||
std::string folder = "C:\\ProgramData\\Looking Glass (IDD)\\";
|
||||
std::string baseName = name;
|
||||
std::string ext = ".txt";
|
||||
std::string logFile = folder + baseName + ext;
|
||||
|
Reference in New Issue
Block a user