🚚 Rename patch-installer to ssn-installer

This commit is contained in:
C-3PO 2018-10-08 15:04:12 +02:00
parent afac9eb2f1
commit ff5a35e688
Signed by: c3po
GPG key ID: 62993C4BB4D86F24
4 changed files with 7 additions and 7 deletions

2
.gitignore vendored
View file

@ -1,2 +1,2 @@
.vscode .vscode
patch-installer ssn-installer

View file

@ -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. 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 ```bash
# Download repository # 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 # Go into repository folder
cd patch-installer cd ssn-installer
# Compile source code # Compile source code
./build.sh ./build.sh
``` ```
@ -21,7 +21,7 @@ cd patch-installer
# Download disk # Download disk
wget http://cdn-patch.swtor.com/patch/assets_swtor_main/assets_swtor_main_-1to0/assets_swtor_main_-1to0.z08 && wget http://cdn-patch.swtor.com/patch/assets_swtor_main/assets_swtor_main_-1to0/assets_swtor_main_-1to0.z08 &&
# Extract file from disk # 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 # Verify that file exists
stat swtor_main_gfx_1.tor stat swtor_main_gfx_1.tor
# Delete disk # Delete disk

View file

@ -1,2 +1,2 @@
#!/bin/sh #!/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

View file

@ -5,7 +5,7 @@
void errorAndExit() { void errorAndExit() {
fprintf(stderr, "\nUsage:\n"); 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, "Options:\n");
fprintf(stderr, " -d, --disk: The path to the disk file that contains the file we want to extract.\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"); 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");