🚚 Rename patch-installer to ssn-installer
This commit is contained in:
parent
afac9eb2f1
commit
ff5a35e688
4 changed files with 7 additions and 7 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,2 +1,2 @@
|
|||
.vscode
|
||||
patch-installer
|
||||
ssn-installer
|
||||
|
|
|
@ -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
|
||||
|
|
2
build.sh
2
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
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue