Skip to content

Commit

Permalink
fix: installed NF Driver version output
Browse files Browse the repository at this point in the history
  • Loading branch information
chsbuffer committed Oct 19, 2020
1 parent abfae4a commit ef8013c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Netch/Controllers/NFController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,16 @@ static NFController()

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();
}
Expand Down

0 comments on commit ef8013c

Please sign in to comment.