public override void Init() { PlayerPath = Utils.CheckSysPath(new string[] { "mpv.exe" }); if (string.IsNullOrEmpty(PlayerPath)) { PlayerPath = (string)Registry.GetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Applications\mpv.exe\shell\open\command", "", null); if (!string.IsNullOrEmpty(PlayerPath)) { int idx = PlayerPath.IndexOf("\"", 1); PlayerPath = PlayerPath.Substring(1, idx - 1); } } if (string.IsNullOrEmpty(PlayerPath)) { Active = false; return; } Active = true; }