diff --git a/core.py b/core.py index b3e1aee..90b068a 100644 --- a/core.py +++ b/core.py @@ -140,6 +140,8 @@ class GMCLCore(object): '''The recommendation memory value set function''' self.__Memory = float(psutil.virtual_memory().free / 1024 ** 3) * 0.8 def SetJavaPath(self,path): + '''The java path set function''' + ''':Path Your java path''' if(path==None): return "Error:Wrong local address for java." else: @@ -148,12 +150,17 @@ class GMCLCore(object): else: return "Error:Wrong local address for java." def SetGameMem(self,Memory): + '''The game memory value set function''' + ''':Memory The memory of the game,the unit is GiBytes''' try: self.__Memory=float(Memory) except: return "Error:Wrong parameter for game memory." 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==""): return "Error:Wrong online address or local address for download." else: