CPlan.W3LF.Settings.InitPath C# (CSharp) Метод

InitPath() публичный статический Метод

Initializes the CPlan.W3LF.Settings.W3Path property.
public static InitPath ( ) : void
Результат void
        public static void InitPath()
        {
            W3Path = RegistryKey.OpenBaseKey(RegistryHive.CurrentUser, RegistryView.Registry32).OpenSubKey("Software\\Blizzard Entertainment\\Warcraft III").GetValue("InstallPath", "C:\\Progra~1\\Warcra~1").ToString();
            Logging.Log(Logging.LogLevels.Information, "Using W3Path: " + W3Path);
        }

Usage Example

Пример #1
0
 static void Main()
 {
     // Initializes the variable that keeps the Warcraft III path.
     Settings.InitPath();
     if (Environment.CommandLine.ToLower().Contains("-launch"))
     {
         Loader.RunW3(); return;
     }
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     Application.Run(new frmMain());
 }
Settings