Correctly log config values

This commit is contained in:
Yukino Song
2024-10-06 05:28:57 +08:00
parent 05763a0b79
commit d8b98e4906
3 changed files with 11 additions and 4 deletions

View File

@@ -1,5 +1,10 @@
#include "utils.h"
#include <SetupApi.h>
#include "src/utility.h"
#include "src/logging.h"
std::wstring acpToUtf16(const std::string& origStr) {
auto acp = GetACP();

View File

@@ -1,14 +1,11 @@
#pragma once
#include <string>
#include <vector>
#include <windows.h>
#include <SetupApi.h>
#include <wtsapi32.h>
#include "src/utility.h"
#include "src/logging.h"
std::wstring acpToUtf16(const std::string& origStr);
std::string utf16toAcp(const std::wstring& utf16Str);
std::string convertUtf8ToCurrentCodepage(const std::string& utf8Str);