|
4 | 4 | import threading |
5 | 5 | import locale |
6 | 6 |
|
| 7 | +# Copyright (c) 2011 by Virtuous Flame |
| 8 | +# Based BOOSTER 1.01 CSO Compressor |
| 9 | +# Adapted for codestation's ZSO format |
| 10 | +# GUI Implementation (GTK4) by Gabriel |
| 11 | +# |
| 12 | +# GNU General Public Licence (GPL) |
| 13 | +# |
| 14 | +# This program is free software; you can redistribute it and/or modify it under |
| 15 | +# the terms of the GNU General Public License as published by the Free Software |
| 16 | +# Foundation; either version 2 of the License, or (at your option) any later |
| 17 | +# version. |
| 18 | +# This program is distributed in the hope that it will be useful, but WITHOUT |
| 19 | +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
| 20 | +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more |
| 21 | +# details. |
| 22 | +# You should have received a copy of the GNU General Public License along with |
| 23 | +# this program; if not, write to the Free Software Foundation, Inc., 59 Temple |
| 24 | +# Place, Suite 330, Boston, MA 02111-1307 USA |
| 25 | +# |
| 26 | + |
| 27 | +__author__ = "Virtuous Flame & Gabriel" |
| 28 | +__license__ = "GPL" |
| 29 | +__version__ = "1.0" |
| 30 | + |
7 | 31 | import lz4.block |
8 | 32 | from struct import pack, unpack |
9 | 33 | from multiprocessing import Pool |
@@ -60,7 +84,7 @@ def lz4_decompress(compressed, block_size): |
60 | 84 |
|
61 | 85 |
|
62 | 86 | def usage(): |
63 | | - print("ziso-python 2.1 by Virtuous Flame (GUI Edition by Gabriel)") |
| 87 | + print("ziso-python (GTK4) 1.0 by Virtuous Flame & Gabriel") |
64 | 88 | print("Usage: ziso [-c level] [-m] [-t percent] [-h] infile outfile") |
65 | 89 | print(" -c level: 1-12 compress ISO to ZSO, 1 for standard compression, >1 for high compression") |
66 | 90 | print(" 0 decompress ZSO to ISO") |
@@ -637,7 +661,7 @@ def on_about(self, action, param): |
637 | 661 | transient_for=win, |
638 | 662 | application_name=_("ZSO Converter"), |
639 | 663 | application_icon="org.ziso.gui", |
640 | | - version="2.2", |
| 664 | + version="1.0", |
641 | 665 | developer_name="Virtuous Flame & Gabriel", |
642 | 666 | comments=_("Modern GTK4/Adwaita GUI for ZSO"), |
643 | 667 | website="https://github.com/codestation/ziso" |
@@ -701,7 +725,7 @@ def main(): |
701 | 725 | # CLI Mode |
702 | 726 | level, bsize, fname_in, fname_out, mp, threshold, align, padding = parse_args() |
703 | 727 |
|
704 | | - print(f"ziso-python 2.1 (CLI)") |
| 728 | + print(f"ziso-python 1.0 (CLI)") |
705 | 729 | if level == 0: |
706 | 730 | print(f"Decompressing {fname_in} to {fname_out}...") |
707 | 731 | decompress_zso(fname_in, fname_out) |
|
0 commit comments