From d5de5b0c1fadc31f95a44caaccdb9a5b8c81ee91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=AD=E4=B9=9D=E9=BC=8E?= <109224573@qq.com> Date: Tue, 30 Jun 2020 21:39:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E4=BF=AE=E6=94=B9=EF=BC=9A=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=3F:?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TextHookLibrary/TextHookHandle.cs | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/TextHookLibrary/TextHookHandle.cs b/TextHookLibrary/TextHookHandle.cs index 9769512f..570c8239 100644 --- a/TextHookLibrary/TextHookHandle.cs +++ b/TextHookLibrary/TextHookHandle.cs @@ -142,18 +142,7 @@ public TextHookHandle() /// 成功返回真,失败返回假 public bool Init(bool x86 = true) { - string Path; - if (x86 == true) - { - //打开x86的Textractor - Path = Environment.CurrentDirectory + "\\lib\\TextHook\\x86"; - } - else - { - //打开x64的Textractor - Path = Environment.CurrentDirectory + "\\lib\\TextHook\\x64"; - } - + string Path = Environment.CurrentDirectory + @"\lib\TextHook\" + (x86 ? "x86" : "x64");//打开对应的Textractor string CurrentPath = Environment.CurrentDirectory; try {