Add getIconPath to MPC
This commit is contained in:
parent
e01580f67c
commit
a40c768698
@ -466,6 +466,13 @@ class MPCHCAPIPlayer(BasePlayer):
|
|||||||
def getDefaultPlayerPathsList():
|
def getDefaultPlayerPathsList():
|
||||||
return constants.MPC_PATHS
|
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
|
@staticmethod
|
||||||
def isValidPlayerPath(path):
|
def isValidPlayerPath(path):
|
||||||
if(MPCHCAPIPlayer.getExpandedPath(path)):
|
if(MPCHCAPIPlayer.getExpandedPath(path)):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user