Some Small Updates :)
This commit is contained in:
parent
8cedf72d2c
commit
eb6fdc4922
9
core.py
9
core.py
@ -140,6 +140,8 @@ class GMCLCore(object):
|
|||||||
'''The recommendation memory value set function'''
|
'''The recommendation memory value set function'''
|
||||||
self.__Memory = float(psutil.virtual_memory().free / 1024 ** 3) * 0.8
|
self.__Memory = float(psutil.virtual_memory().free / 1024 ** 3) * 0.8
|
||||||
def SetJavaPath(self,path):
|
def SetJavaPath(self,path):
|
||||||
|
'''The java path set function'''
|
||||||
|
''':Path Your java path'''
|
||||||
if(path==None):
|
if(path==None):
|
||||||
return "Error:Wrong local address for java."
|
return "Error:Wrong local address for java."
|
||||||
else:
|
else:
|
||||||
@ -148,12 +150,17 @@ class GMCLCore(object):
|
|||||||
else:
|
else:
|
||||||
return "Error:Wrong local address for java."
|
return "Error:Wrong local address for java."
|
||||||
def SetGameMem(self,Memory):
|
def SetGameMem(self,Memory):
|
||||||
|
'''The game memory value set function'''
|
||||||
|
''':Memory The memory of the game,the unit is GiBytes'''
|
||||||
try:
|
try:
|
||||||
self.__Memory=float(Memory)
|
self.__Memory=float(Memory)
|
||||||
except:
|
except:
|
||||||
return "Error:Wrong parameter for game memory."
|
return "Error:Wrong parameter for game memory."
|
||||||
def Download(self,DownloadFrom,DownloadTo,ThreadNum=3):
|
def Download(self,DownloadFrom,DownloadTo,ThreadNum=3):
|
||||||
'''Multi-Thread download function'''
|
'''The multi-thread download function'''
|
||||||
|
''':DownloadFrom The online url for the file'''
|
||||||
|
''':DownloadTo The local path for the file'''
|
||||||
|
''':ThreadNum The number of the thread,the default value is 3'''
|
||||||
if(DownloadFrom=="" or DownloadTo==""):
|
if(DownloadFrom=="" or DownloadTo==""):
|
||||||
return "Error:Wrong online address or local address for download."
|
return "Error:Wrong online address or local address for download."
|
||||||
else:
|
else:
|
||||||
|
Reference in New Issue
Block a user