From 65670b4ea716504a47c543fcaf0a569c87a568f5 Mon Sep 17 00:00:00 2001 From: Changhua Date: Mon, 27 Jan 2025 12:19:54 +0800 Subject: [PATCH] Refactoring --- WeChatFerry/sdk/SDK.vcxproj | 3 +-- WeChatFerry/sdk/SDK.vcxproj.filters | 7 ++----- WeChatFerry/sdk/sdk.cpp | 4 ++-- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/WeChatFerry/sdk/SDK.vcxproj b/WeChatFerry/sdk/SDK.vcxproj index f71d944..5f549ad 100644 --- a/WeChatFerry/sdk/SDK.vcxproj +++ b/WeChatFerry/sdk/SDK.vcxproj @@ -141,14 +141,13 @@ xcopy /y $(OutDir)$(TargetFileName) $(SolutionDir)..\clients\python\wcferry - + - diff --git a/WeChatFerry/sdk/SDK.vcxproj.filters b/WeChatFerry/sdk/SDK.vcxproj.filters index f38f11a..323d545 100644 --- a/WeChatFerry/sdk/SDK.vcxproj.filters +++ b/WeChatFerry/sdk/SDK.vcxproj.filters @@ -24,10 +24,10 @@ 头文件 - + 头文件 - + 头文件 @@ -41,9 +41,6 @@ 源文件 - - 源文件 - 源文件 diff --git a/WeChatFerry/sdk/sdk.cpp b/WeChatFerry/sdk/sdk.cpp index a6473fe..8b1c790 100644 --- a/WeChatFerry/sdk/sdk.cpp +++ b/WeChatFerry/sdk/sdk.cpp @@ -17,8 +17,8 @@ static HANDLE wcProcess = NULL; static HMODULE spyBase = NULL; static std::wstring spyDllPath; -const char *DISCLAIMER_FILE = ".license_accepted.flag"; -const char *DISCLAIMER_TEXT_FILE = "DISCLAIMER.md"; +constexpr char DISCLAIMER_FILE[] = ".license_accepted.flag"; +constexpr char DISCLAIMER_TEXT_FILE[] = "DISCLAIMER.md"; static std::optional ReadDisclaimerText(const char *filePath) {