Add getIconPath to MPC

This commit is contained in:
Etoh 2013-10-15 00:55:15 +01:00
parent e01580f67c
commit a40c768698

View File

@ -466,6 +466,13 @@ class MPCHCAPIPlayer(BasePlayer):
def getDefaultPlayerPathsList():
return constants.MPC_PATHS
@staticmethod
def getIconPath(path):
if(MPCHCAPIPlayer.getExpandedPath(path).lower().endswith(u'mpc-hc64.exe'.lower())):
return constants.MPC64_ICONPATH
else:
return constants.MPC_ICONPATH
@staticmethod
def isValidPlayerPath(path):
if(MPCHCAPIPlayer.getExpandedPath(path)):