修复安全问题

This commit is contained in:
2024-11-17 15:43:17 +08:00
parent 7138c6fbb9
commit 676d52c964
5 changed files with 42 additions and 12 deletions

View File

@@ -1356,6 +1356,15 @@ try:
wine[f"{programPath}/wine/{i}"] = f"{programPath}/wine/{i}"
except:
pass
try:
for i in json.loads(readtxt(f"{get_home()}/.deepwinerunner/wine/winelist.json")):
if os.path.exists(f"{get_home()}/.deepwinerunner/wine/{i}.7z"):
wine[f"{get_home()}/.deepwinerunner/wine/{i}.7z"] = f"{get_home()}/.deepwinerunner/wine/{i}.7z"
continue
if os.path.exists(f"{get_home()}/.deepwinerunner/wine/{i}"):
wine[f"{get_home()}/.deepwinerunner/wine/{i}"] = f"{get_home()}/.deepwinerunner/wine/{i}"
except:
pass
os.chdir("/")
iconUiList = []
helperConfigPath = None