From eb6fdc49226deb715391343feda4dc01c06fe4cb Mon Sep 17 00:00:00 2001 From: Bigsk Date: Wed, 18 Nov 2020 15:52:35 +0800 Subject: [PATCH] Some Small Updates :) --- core.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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: