From 386f2df1da4d282ca71b80720dfbe01ff7caed41 Mon Sep 17 00:00:00 2001 From: Vladislav Salikov Date: Sat, 3 May 2025 17:09:31 +0300 Subject: [PATCH] Changed path to logfile in debug mode. --- wCenterWindow/CLogger.cpp | 2 +- wCenterWindow/wCenterWindow.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/wCenterWindow/CLogger.cpp b/wCenterWindow/CLogger.cpp index deac95d..a5f5c13 100644 --- a/wCenterWindow/CLogger.cpp +++ b/wCenterWindow/CLogger.cpp @@ -44,7 +44,7 @@ void CLogger::Init() { if (std::filesystem::exists(log_path)) std::filesystem::rename(log_path, bak_path); #ifdef _DEBUG - log_path = L"D:\\test.log"; + log_path = L"test.log"; #endif fsLogFile.open(log_path, std::ios::trunc); if (fsLogFile.is_open()) { diff --git a/wCenterWindow/wCenterWindow.cpp b/wCenterWindow/wCenterWindow.cpp index 6a971fd..d89f37b 100644 --- a/wCenterWindow/wCenterWindow.cpp +++ b/wCenterWindow/wCenterWindow.cpp @@ -5,6 +5,8 @@ // TODO: Make the automatic updater (download, unzip and replace executable). // TODO: Change keyboard low-level hook to RegisterHotKey function. (Is it really needed?) +#pragma warning( disable : 28251 ) + #include "framework.h" #include "wCenterWindow.h" #include "updater.h"