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