Skip to content

Commit

Permalink
Added detection for MPC-BE x86 and x64.
Browse files Browse the repository at this point in the history
  • Loading branch information
ElementalCrisis committed Sep 5, 2016
1 parent d90ca6e commit e227021
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion JMMClient/VideoPlayers/MPCVideoPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class MPCVideoPlayer : BaseVideoPlayer, IVideoPlayer
public override void Init()
{
// nvo is nvidia optimus
PlayerPath = Utils.CheckSysPath(new string[] { "mpc-hc64.exe", "mpc-hc.exe", "mpc-hc64_nvo.exe", "mpc-hc_nvo.exe" });
PlayerPath = Utils.CheckSysPath(new string[] { "mpc-hc64.exe", "mpc-hc.exe", "mpc-hc64_nvo.exe", "mpc-hc_nvo.exe", "mpc-be64.exe", "mpc-be.exe" });
//Look for 64bit
if (string.IsNullOrEmpty(PlayerPath))
{
Expand Down Expand Up @@ -47,6 +47,14 @@ public override void Init()
PlayerPath = null;
}
if (string.IsNullOrEmpty(PlayerPath))
{
PlayerPath = (string)Registry.GetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\MPC-BE", "ExePath", null);
}
if (string.IsNullOrEmpty(PlayerPath))
{
PlayerPath = (string)Registry.GetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\MPC-BE", "ExePath", null);
}
if (string.IsNullOrEmpty(PlayerPath))
{
PlayerPath = (string)Registry.GetValue(@"HKEY_CURRENT_USER\SOFTWARE\MPC-HC\MPC-HC", "ExePath", null);
}
Expand Down

0 comments on commit e227021

Please sign in to comment.