Preparations for the release of the 64-bit version.

This commit is contained in:
2023-12-03 20:23:51 +03:00
parent 8c570ab1e9
commit f558df6bf9
4 changed files with 28 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
// wCenterWindow
// CLogger.cpp
#include "CLogger.h"
#include <string>
#include <filesystem>
#include <strsafe.h>
@@ -70,6 +71,20 @@ CLogger::CLogger(const wchar_t* _appTitle, const wchar_t* _appVersion) {
Init();
}
CLogger::CLogger(const wchar_t* _appTitle, const uint8_t _appPlatform) {
szAppTitle = _appTitle; szAppPlatform = std::to_wstring(_appPlatform);
szAppTitleVer = _appTitle;
szAppTitleVer.append(L" (x").append(szAppPlatform).append(L")");
Init();
}
CLogger::CLogger(const wchar_t* _appTitle, const wchar_t* _appVersion, const uint8_t _appPlatform) {
szAppTitle = _appTitle; szAppVersion = _appVersion; szAppPlatform = std::to_wstring(_appPlatform);
szAppTitleVer = _appTitle;
szAppTitleVer.append(L", v").append(_appVersion).append(L" (x").append(szAppPlatform).append(L")");
Init();
}
CLogger::~CLogger() {
if (fsLogFile) {
fsLogFile << GetTimeStamp() << "Stop log." << std::endl;