From ef8013c0736191809f24b65c46b2e911627174d2 Mon Sep 17 00:00:00 2001 From: ChsBuffer <33744752+chsbuffer@users.noreply.github.com> Date: Sun, 18 Oct 2020 14:57:51 +0800 Subject: [PATCH] fix: installed NF Driver version output --- Netch/Controllers/NFController.cs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Netch/Controllers/NFController.cs b/Netch/Controllers/NFController.cs index d8dcc8e7..60b352dc 100644 --- a/Netch/Controllers/NFController.cs +++ b/Netch/Controllers/NFController.cs @@ -47,12 +47,16 @@ namespace Netch.Controllers public bool Start(in Mode mode) { - Logging.Info("内置驱动版本: " + Utils.Utils.GetFileVersion(BinDriver)); - if (Utils.Utils.GetFileVersion(SystemDriver) != Utils.Utils.GetFileVersion(BinDriver)) + var binFileVersion = Utils.Utils.GetFileVersion(BinDriver); + var systemFileVersion = Utils.Utils.GetFileVersion(SystemDriver); + + Logging.Info("内置驱动版本: " + binFileVersion); + Logging.Info("系统驱动版本: " + systemFileVersion); + + if (!systemFileVersion.Equals(binFileVersion)) { if (File.Exists(SystemDriver)) { - Logging.Info("系统驱动版本: " + Utils.Utils.GetFileVersion(SystemDriver)); Logging.Info("更新驱动"); UninstallDriver(); }