From ff5a35e6888f453124976c253aa953db28d63db5 Mon Sep 17 00:00:00 2001 From: C-3PO Date: Mon, 8 Oct 2018 15:04:12 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=9A=20Rename=20patch-installer=20to=20?= =?UTF-8?q?ssn-installer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 +- README.md | 8 ++++---- build.sh | 2 +- src/errorAndExit.c | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index e23cd27..84e4c37 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ .vscode -patch-installer +ssn-installer diff --git a/README.md b/README.md index 538a154..e603e3b 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -`patch-installer` is a command-line application that can be used to extract a single file from the disk files (.z01, .z02 etc.). This tool is very low-level and assumes that you have already read the .zip file and know the location, size and decryption keys of the specific file you want to extract. +`ssn-installer` is a command-line application that can be used to extract a single file from the disk files (.z01, .z02 etc.). This tool is very low-level and assumes that you have already read the .zip file and know the location, size and decryption keys of the specific file you want to extract. If this is not a `-1to0` patch, the disk file may only contain the differences to the previous release. In this case, you can supply the location of this file's previous version, and this tool will generate the new version using VCDIFF/xdelta3. @@ -8,9 +8,9 @@ If a target location is specified, the extracted file is saved to that location, ```bash # Download repository -git clone https://git.jedipedia.net/swtor/patch-installer.git +git clone https://git.jedipedia.net/swtor/ssn-installer.git # Go into repository folder -cd patch-installer +cd ssn-installer # Compile source code ./build.sh ``` @@ -21,7 +21,7 @@ cd patch-installer # Download disk wget http://cdn-patch.swtor.com/patch/assets_swtor_main/assets_swtor_main_-1to0/assets_swtor_main_-1to0.z08 && # Extract file from disk -./patch-installer --disk assets_swtor_main_-1to0.z08 --offset 267071107 --size 165738618 --keys 3393608425,2820264972,3930508185 > ../swtor_main_gfx_1.tor && +./ssn-installer --disk assets_swtor_main_-1to0.z08 --offset 267071107 --size 165738618 --keys 3393608425,2820264972,3930508185 > ../swtor_main_gfx_1.tor && # Verify that file exists stat swtor_main_gfx_1.tor # Delete disk diff --git a/build.sh b/build.sh index 1cd2476..0dfa866 100644 --- a/build.sh +++ b/build.sh @@ -1,2 +1,2 @@ #!/bin/sh -gcc -Wall -m64 -o patch-installer lib/miniz/miniz.c src/*.c src/*/*.c && chmod +x patch-installer +gcc -Wall -m64 -o ssn-installer lib/miniz/miniz.c src/*.c src/*/*.c && chmod +x ssn-installer diff --git a/src/errorAndExit.c b/src/errorAndExit.c index 3c4d966..a7d8f1d 100644 --- a/src/errorAndExit.c +++ b/src/errorAndExit.c @@ -5,7 +5,7 @@ void errorAndExit() { fprintf(stderr, "\nUsage:\n"); - fprintf(stderr, " ./patch-installer --disk main.z01 --offset 456 --size 1000 [--keys 123,456,789] [--previous oldfile.tor]\n"); + fprintf(stderr, " ./ssn-installer --disk main.z01 --offset 456 --size 1000 [--keys 123,456,789] [--previous oldfile.tor]\n"); fprintf(stderr, "Options:\n"); fprintf(stderr, " -d, --disk: The path to the disk file that contains the file we want to extract.\n"); fprintf(stderr, " -o, --offset: The offset into the disk, given in bytes, where the local file header of the file we want to extract starts.\n");