From 32d5bbaa8c4cd93f5a91dff8e8a98e772a000bd8 Mon Sep 17 00:00:00 2001 From: anonymousException Date: Fri, 16 Feb 2024 13:39:22 +0800 Subject: [PATCH] fix error occurs when extract multi-directory game update version to v1.4.1 --- src/renpy_extract.py | 3 ++- src/ui.py | 2 +- src/ui.ui | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/renpy_extract.py b/src/renpy_extract.py index d547084..3999f96 100644 --- a/src/renpy_extract.py +++ b/src/renpy_extract.py @@ -6,6 +6,7 @@ import time import re import traceback +import pathlib from my_log import log_print @@ -273,7 +274,7 @@ def CreateEmptyFileIfNotExsit(p): target = p + i[len(p + '/../../'):] targetDir = os.path.dirname(target) if os.path.exists(targetDir) == False: - os.mkdir(targetDir) + pathlib.Path(targetDir).mkdir(parents=True, exist_ok=True) if os.path.isfile(target) == False: open(target, 'w').close() diff --git a/src/ui.py b/src/ui.py index 63cea73..c47c2a7 100644 --- a/src/ui.py +++ b/src/ui.py @@ -217,7 +217,7 @@ def retranslateUi(self, MainWindow): self.extractBtn.setText(QCoreApplication.translate("MainWindow", u"extract", None)) self.label_8.setText(QCoreApplication.translate("MainWindow", u"tl name", None)) self.tlNameText.setPlaceholderText(QCoreApplication.translate("MainWindow", u"only needs in file(s) mode,if you input the directory , just fill nothing. input the directory name under game\\tl Example: japanese or chinese or german", None)) - self.versionLabel.setText(QCoreApplication.translate("MainWindow", u"Version 1.4.0", None)) + self.versionLabel.setText(QCoreApplication.translate("MainWindow", u"Version 1.4.1", None)) self.copyrightLabel.setText(QCoreApplication.translate("MainWindow", u"\u00a92024 Last moment,All rights reserved.", None)) self.label_11.setText(QCoreApplication.translate("MainWindow", u"font", None)) self.selectFontText.setPlaceholderText(QCoreApplication.translate("MainWindow", u"input or choose or drag the font which supports the language after translation. Example : DejaVuSans.ttf (ren'py 's default font)", None)) diff --git a/src/ui.ui b/src/ui.ui index f73bde5..898d660 100644 --- a/src/ui.ui +++ b/src/ui.ui @@ -383,7 +383,7 @@ - Version 1.4.0 + Version 1.4.1