From 1897ab3813ace4ac3e3cdb9b26478a3e23916a7a Mon Sep 17 00:00:00 2001 From: C-3PO Date: Fri, 14 Sep 2018 18:44:38 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=9A=20Rename=20patcher-installer=20to?= =?UTF-8?q?=20patch-installer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 +- README.md | 4 ++-- build.sh | 2 +- src/errorAndExit.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 789ef81..e23cd27 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ .vscode -patcher-installer +patch-installer diff --git a/README.md b/README.md index a9a890c..3b1b4d4 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -```patcher-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. +```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. 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. @@ -16,7 +16,7 @@ To use: ``` wget http://cdn-patch.swtor.com/patch/assets_swtor_main/assets_swtor_main_-1to0/assets_swtor_main_-1to0.z08 && -./patcher-installer --disk assets_swtor_main_-1to0.z08 --offset 267071107 --size 165738618 --keys 3393608425,2820264972,3930508185 > ../swtor_main_gfx_1.tor && +./patch-installer --disk assets_swtor_main_-1to0.z08 --offset 267071107 --size 165738618 --keys 3393608425,2820264972,3930508185 > ../swtor_main_gfx_1.tor && stat swtor_main_gfx_1.tor rm assets_swtor_main_-1to0.z08 ``` diff --git a/build.sh b/build.sh index 234408f..8b5d21c 100644 --- a/build.sh +++ b/build.sh @@ -1 +1 @@ -gcc -Wall -m64 -o patcher-installer lib/miniz/miniz.c src/*.c src/*/*.c && chmod +x patcher-installer +gcc -Wall -m64 -o patch-installer lib/miniz/miniz.c src/*.c src/*/*.c && chmod +x patch-installer diff --git a/src/errorAndExit.c b/src/errorAndExit.c index 1af7287..e6e2aaf 100644 --- a/src/errorAndExit.c +++ b/src/errorAndExit.c @@ -5,7 +5,7 @@ void errorAndExit() { fprintf(stderr, "\nUsage:\n"); - fprintf(stderr, " ./patcher-installer --disk main.z01 --offset 456z --size 1000 [--keys 123,456,789] [--previous oldfile.tor]\n"); + fprintf(stderr, " ./patch-installer --disk main.z01 --offset 456z --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");