Skip to content

Commit

Permalink
refactor: 迁移至 unicode
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxLHy0424 committed Sep 2, 2024
1 parent 084cfd5 commit 7947d8c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"${workspaceFolder}\\*"
],
"defines":[
"ANSI",
"_ANSI"
"UNICODE",
"_UNICODE"
],
"compilerPath":"C:\\Software\\MSYS2\\ucrt64\\bin\\g++.exe",
"compilerArgs":[
Expand Down
6 changes: 3 additions & 3 deletions src/def.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once
#define _CRT_SECURE_NO_WARNINGS
#define ANSI
#define _ANSI
#define UNICODE
#define _UNICODE
#include<stdio.h>
#include<string>
#include<thread>
Expand All @@ -13,4 +13,4 @@ typedef short i16;
typedef unsigned short u16;
typedef int i32;
#define CHANNEL 2
#define CUSTOM_TITLE "[<CUSTOM>] CRCSN"
#define CUSTOM_TITLE L"[<CUSTOM>] CRCSN"
6 changes: 3 additions & 3 deletions src/mod.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7947d8c

Please sign in to comment.