mirror of
https://github.com/netchx/netch.git
synced 2026-05-07 22:44:03 +08:00
Feature: NFController.CheckCore check Core.bin file
This commit is contained in:
@@ -34,6 +34,7 @@ namespace Netch.Controllers
|
||||
_mode = mode;
|
||||
_rdrConfig = Global.Settings.Redirector;
|
||||
CheckDriver();
|
||||
CheckCore();
|
||||
|
||||
Dial(NameList.TYPE_FILTERLOOPBACK, "false");
|
||||
Dial(NameList.TYPE_FILTERICMP, "true");
|
||||
@@ -160,6 +161,12 @@ namespace Netch.Controllers
|
||||
Dial(NameList.TYPE_BYPNAME, "^" + Global.NetchDir.ToRegexString() + @"((?!NTT\.exe).)*$");
|
||||
}
|
||||
|
||||
private void CheckCore()
|
||||
{
|
||||
if (!File.Exists(Constants.NFCore))
|
||||
throw new MessageException(i18N.Translate("\"Core.bin\" is missing. Please check your Antivirus software"));
|
||||
}
|
||||
|
||||
#region DriverUtil
|
||||
|
||||
private static void CheckDriver()
|
||||
|
||||
Reference in New Issue
Block a user