Skip to content

Commit 4f734b4

Browse files
committed
0.4
1 parent 90c10f0 commit 4f734b4

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

gui/cream_api_maker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def run(self):
6060
stellaris_dlc_list = self.get_dlc_list('281990')
6161
# hoi_dlc_list = self.get_dlc_list('394360')
6262
total_dlcs = len(stellaris_dlc_list)
63-
with open("creamapi_steam_files/cream_api.ini", 'w', encoding='utf-8') as f:
63+
with open("../creamapi_steam_files/cream_api.ini", 'w', encoding='utf-8') as f:
6464
f.write("; auto created by Stellaris DLC Unlocker\n")
6565
f.write("; Author seuyh\n")
6666
current_datetime = datetime.now().strftime("%d.%m.%Y")
@@ -114,7 +114,7 @@ def run(self):
114114
self.launcher_creamapi(dlcs)
115115

116116
def launcher_creamapi(self, dlcs):
117-
with open("creamapi_launcher_files/cream_api.ini", 'w', encoding='utf-8') as f:
117+
with open("../creamapi_launcher_files/cream_api.ini", 'w', encoding='utf-8') as f:
118118
current_datetime = datetime.now().strftime("%d.%m.%Y")
119119
f.write(f"; created {current_datetime}\n")
120120
f.write("[steam]\n")

gui/main_window.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def __init__(self):
5959
self.space_req_change()
6060
self.path_change()
6161
self.setWindowTitle("Stellaris DLC Unlocker")
62-
self.setWindowIcon(QIcon('design/435345.png'))
62+
self.setWindowIcon(QIcon('../design/435345.png'))
6363
# ------------------------------------------------------------ #
6464

6565
def switch_to_next(self):
@@ -70,7 +70,7 @@ def switch_to_back(self):
7070
self.stackedWidget.setCurrentIndex(self.stackedWidget.currentIndex() - 1)
7171

7272
def version_check(self):
73-
if float(version) > float(0.3):
73+
if float(version) > float(0.4):
7474
if self.ok_dialog('Новая версия',
7575
"На сервере обнаружена новая версия!\n\nПерекачайте анлокер с сайта",
7676
QMessageBox.Critical):
@@ -257,7 +257,7 @@ def reinstall(self, skip=False):
257257
launcher_folders.append(item)
258258
launcher_folder = os.path.join(os.path.join(folder_path, launcher_folders[0]))
259259
if self.ok_dialog('Внимание',
260-
"Сейчас мы запустим лаунчер, но так как мы не можем отследить когда он выполнит уведомление, после его открытия нажмите 'SKIP' в правом верхем углу и дождитесь пока лаучнер скажет, что обновление готово и просто закройте его",
260+
"Сейчас мы запустим лаунчер, но так как мы не можем отследить когда он обновится вам придется нам помочь, после его открытия нажмите 'SKIP' в правом верхем углу и дождитесь пока лаучнер скажет, что обновление готово и просто закройте его",
261261
QMessageBox.Information):
262262
process = Popen([os.path.join(folder_path, launcher_folder, "Paradox Launcher.exe")])
263263
process.wait()
@@ -279,9 +279,9 @@ def replace_files(self, launcher_folder):
279279
pass
280280
os.rename(f'{launcher_folder}/resources/app.asar.unpacked/dist/main/steam_api64.dll',
281281
f'{launcher_folder}/resources/app.asar.unpacked/dist/main/steam_api64_o.dll')
282-
copytree('creamapi_launcher_files', f'{launcher_folder}/resources/app.asar.unpacked/dist/main',
282+
copytree('../creamapi_launcher_files', f'{launcher_folder}/resources/app.asar.unpacked/dist/main',
283283
dirs_exist_ok=True)
284-
copytree('creamapi_steam_files', self.path_place.toPlainText(), dirs_exist_ok=True)
284+
copytree('../creamapi_steam_files', self.path_place.toPlainText(), dirs_exist_ok=True)
285285
# move(f'{unzipped}/dlc', self.path_place.toPlainText())
286286
self.finish_text.setPlainText('Все готово!')
287287
sleep(1)

0 commit comments

Comments
 (0)