Skip to content

Commit 0f59015

Browse files
committed
fixed a bug when launching from under another user.
Translation has been corrected. Trying to solve an unpacking error.
1 parent bd171a4 commit 0f59015

File tree

6 files changed

+6
-4
lines changed

6 files changed

+6
-4
lines changed

Libs/DownloadThread.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ def run(self):
5252
file.close()
5353

5454
except Exception as e:
55+
self.cancelled = True
5556
self.error_signal.emit(e)
5657
finally:
5758
progress_percentage = int((self.dlc_downloaded / self.dlc_count) * 100)

Libs/GamePath.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def stellaris_path():
2727

2828

2929
def launcher_path():
30-
user_home = os.path.expanduser("~")
30+
user_home = os.path.join("C:\\Users", os.getlogin())
3131
launcher_path_1 = reg_search(r"Software\Paradox Interactive\Paradox Launcher v2", "LauncherInstallation")
3232
launcher_path_2 = reg_search(r"Software\Paradox Interactive\Paradox Launcher v2", "LauncherPathFolder")
3333

Libs/LauncherReinstall.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def __init__(self, msi_path, paradox_folder1, paradox_folder2, paradox_folder3,
2424
self.downloaded_launcher_dir = downloaded_launcher_dir
2525

2626
def run(self):
27-
user_home = os.path.expanduser("~")
27+
user_home = os.path.join("C:\\Users", os.getlogin())
2828
if self.paradox_folder1 == self.msi_path:
2929
self.paradox_folder1 = os.path.join(user_home, "AppData", "Local", "Programs", "Paradox Interactive", "launcher")
3030
latest_file = None
@@ -67,6 +67,7 @@ def extract_version(filename):
6767
print(f'Launcher Path: {msi_path}\nPath exists: {os.path.exists(msi_path)}')
6868
print(f'Deleting launcher...')
6969
try:
70+
7071
self.paradox_remove(self.paradox_folder1, self.paradox_folder2, self.paradox_folder3, self.paradox_folder4)
7172

7273
uninstall = Popen(['cmd.exe', '/c', 'msiexec', '/uninstall',

UI/translations/ru_RU.qm

0 Bytes
Binary file not shown.

UI/translations/zh_CN.qm

226 Bytes
Binary file not shown.

UI_logic/MainWindow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def __init__(self):
5858
self.creamapidone = False
5959

6060
self.GITHUB_REPO = "https://api.github.com/repos/seuyh/stellaris-dlc-unlocker/releases/latest"
61-
self.current_version = '2.21'
61+
self.current_version = '2.22'
6262
self.version_label.setText(f'Ver. {str(self.current_version)}')
6363

6464
self.copy_files_radio.setVisible(False)
@@ -309,7 +309,7 @@ def checkDLCUpdate(self):
309309
def full_reinstall():
310310
try:
311311
print(f'Deleting documents folder...')
312-
user_home = os.path.expanduser("~")
312+
user_home = os.path.join("C:\\Users", os.getlogin())
313313
rmtree(os.path.join(user_home, "Documents", "Paradox Interactive", "Stellaris"))
314314
except Exception as e:
315315
print(f'Cant delete {e}')

0 commit comments

Comments
 (0)