Skip to content

Commit

Permalink
Prepare for release 1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
aspadm committed Jan 6, 2019
1 parent 4368a94 commit 94684d9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Converters/GUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def setupUi(self, Form):

def retranslateUi(self, Form):
_translate = QtCore.QCoreApplication.translate
Form.setWindowTitle(_translate("Form", "EIrepack v1.0"))
Form.setWindowTitle(_translate("Form", "EIrepack v1.1"))
self.label.setText(_translate("Form", "Папка с игрой (содержит game.exe):"))
self.src_folder_choser.setText(_translate("Form", "Обзор..."))
self.in_place.setText(_translate("Form", "Распаковка \"На месте\" (использовать с осторожностью!)"))
Expand Down
2 changes: 1 addition & 1 deletion Converters/GUI.ui
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</rect>
</property>
<property name="windowTitle">
<string>EIrepack v1.0</string>
<string>EIrepack v1.1</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
Expand Down
17 changes: 9 additions & 8 deletions Converters/unpack.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import time

funcs = []
not_copy = ["asi", "dll", "exe", "sav"]
not_copy = ["asi", "dll", "exe", "sav", "mp", "bmp"]
simple_copy = ["mp3", "rtf", "dat", "grp", "bik", "ini", "txt", "wav",
"mat", "scr"]
archives = ["mq", "mpr", "res", "bon", "mod", "anm"]
Expand Down Expand Up @@ -513,31 +513,32 @@ def add_progress(self, value=1):
self.progress_call.emit(self.progress)

def start_unpack():
max_progress = 50033
max_progress = 53983
w.start.setEnabled(False)
argarr = [w.src_folder.text()]

if not w.in_place.isChecked():
argarr.append(w.dst_folder.text())
if not w.need_copy.isChecked():
argarr.append("--skip_copy")
max_progress -= 287
max_progress -= 276
else:
argarr.append(w.src_folder.text())
argarr.append("--skip_copy")
max_progress -= 287
max_progress -= 276

if not w.need_extracting.isChecked():
argarr.append("--skip_extract")
max_progress -= 2009
max_progress -= 2036
if not w.need_converting.isChecked():
argarr.append("--skip_convert")
max_progress -= 47737
max_progress -= 51671
if w.need_verbose.isChecked():
argarr.append("--verbose")
if w.need_text_merging.isChecked():
argarr.append("--text_joint")
max_progress += 3561
else:
max_progress -= 3561

w.progress.setMaximum(max_progress)
unpack_thread.args = parser.parse_args(argarr)
Expand Down Expand Up @@ -568,7 +569,7 @@ def complete():
"Все операции выполнены!")

if __name__ == "__main__":
parser = argparse.ArgumentParser(description="EIrepack v1.0 \
parser = argparse.ArgumentParser(description="EIrepack v1.1 \
(Evil Islands resources unpacker and converter)",
add_help=True)
parser.add_argument("src_dir", type=str,
Expand Down

0 comments on commit 94684d9

Please sign in to comment.