Skip to content
This repository was archived by the owner on Jul 4, 2023. It is now read-only.

Commit f9ce0f6

Browse files
committed
Edit
1 parent ad4cee2 commit f9ce0f6

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

launcher-rework.py

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import pyautogui
1212
import requests
1313
from PySide2 import QtWidgets, QtCore, QtGui
14-
from PySide2.QtCore import QProcess
1514
from PySide2.QtGui import QFontDatabase
1615

1716
import cc_main_localization
@@ -604,26 +603,12 @@ def main():
604603
with open("Json/save.json", "w") as b:
605604
save = {"level": lvl}
606605
json.dump(save, b, indent=4)
607-
if isSave == "SAVE_DEAD":
608-
return lvl
609-
else:
606+
if isSave != "SAVE_DEAD":
610607
lvl = -2
611-
return lvl
612-
'''
613-
if not CheckPyInstaller():
614-
subprocess.call(["python", "YouLose.py", "--lv", str(lvl)])
615-
else:
616-
subprocess.call(["release/YouLose.exe", "--lv", str(lvl)])
617-
'''
608+
return lvl
618609
elif isSave == "X":
619610
lvl = -1
620611
return lvl
621-
'''
622-
if not CheckPyInstaller():
623-
subprocess.call(["python", "YouLose.py", "--lv", str(lvl)])
624-
else:
625-
subprocess.call(["release/YouLose.exe", "--lv", str(lvl)])
626-
'''
627612
break
628613
else:
629614
print("pass")

0 commit comments

Comments
 (0)