From 7947d8cee654223d2cd5c4cd19b29f0426ca501a Mon Sep 17 00:00:00 2001 From: MaxLHy0424 Date: Mon, 2 Sep 2024 23:06:16 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E8=BF=81=E7=A7=BB=E8=87=B3=20unico?= =?UTF-8?q?de?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/c_cpp_properties.json | 4 ++-- src/def.hpp | 6 +++--- src/mod.hpp | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json index 715c6c66..bd8ca611 100644 --- a/.vscode/c_cpp_properties.json +++ b/.vscode/c_cpp_properties.json @@ -6,8 +6,8 @@ "${workspaceFolder}\\*" ], "defines":[ - "ANSI", - "_ANSI" + "UNICODE", + "_UNICODE" ], "compilerPath":"C:\\Software\\MSYS2\\ucrt64\\bin\\g++.exe", "compilerArgs":[ diff --git a/src/def.hpp b/src/def.hpp index e9a62446..59e47433 100644 --- a/src/def.hpp +++ b/src/def.hpp @@ -1,7 +1,7 @@ #pragma once #define _CRT_SECURE_NO_WARNINGS -#define ANSI -#define _ANSI +#define UNICODE +#define _UNICODE #include #include #include @@ -13,4 +13,4 @@ typedef short i16; typedef unsigned short u16; typedef int i32; #define CHANNEL 2 -#define CUSTOM_TITLE "[] CRCSN" \ No newline at end of file +#define CUSTOM_TITLE L"[] CRCSN" \ No newline at end of file diff --git a/src/mod.hpp b/src/mod.hpp index 63885f86..942b3817 100644 --- a/src/mod.hpp +++ b/src/mod.hpp @@ -8,11 +8,11 @@ namespace Mod{ auto init(){ system("chcp 936 > nul"); #if CHANNEL==0 - SetConsoleTitle("CRCSN"); + SetConsoleTitle(L"CRCSN"); #elif CHANNEL==1 - SetConsoleTitle("[Evaluate] CRCSN"); + SetConsoleTitle(L"[Evaluate] CRCSN"); #elif CHANNEL==2 - SetConsoleTitle("[Snapshot] CRCSN"); + SetConsoleTitle(L"[Snapshot] CRCSN"); #else SetConsoleTitle(CUSTOM_TITLE); #endif