Skip to content

Commit 4e99904

Browse files
committed
Added support to JPAK2 Encrypted/Compressed
1 parent f6e9a01 commit 4e99904

6 files changed

Lines changed: 349 additions & 71 deletions

File tree

doc/JPAK2/Extended Mode/README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,16 @@ The Extended Mode of JPAK is consisted of two new JPAK Format files: a **JDS** (
2727

2828
The JPAK Meta Storage is similar to JPAK Filetable Structure, but aditionally has a volume list (JDK) for acessing the data storage. It has the follwing struct:
2929

30-
| START | END | Description |
31-
| --------- | --------- | ------------------------------------------------- |
32-
| 0x0 | 0x4 | JMS1 Magic Number |
33-
| 0x4 | 0xC | Padding (0x00) |
34-
| 0x**V** | 0x**U** | JSON Volume Table |
35-
| 0x**U** | 0x**W** | JSON File Table |
36-
| 0x**W** | 0x**X** | `uint32_t` Producer ID (Look JPAK2.0 spec at 2.1) |
37-
| 0x**X** | 0x**Y** | `uint32_t` JPAK Flags (Look JPAK2.0 spec at 2.1) |
38-
| 0x**Y** | 0x**Z** | `uint32_t` User Flags (Look JPAK2.0 spec at 2.1) |
39-
| 0x**Z** | `END` | `uint32_t` JSON FileTable Offset |
30+
| START | END | Description |
31+
| ------------ | ------------- | ------------------------------------------------- |
32+
| 0x0 | 0x4 | JMS1 Magic Number |
33+
| 0x4 | 0xC | Padding (0x00) |
34+
| 0x**V** | 0x**U** | JSON Volume Table |
35+
| 0x**U** | 0x**W** | JSON File Table |
36+
| 0x**X** | 0x**X+4** | `uint32_t` Producer ID (Look JPAK2.0 spec at 2.1) |
37+
| 0x**X+4** | 0x**X+8** | `uint32_t` JPAK Flags (Look JPAK2.0 spec at 2.1) |
38+
| 0x**X+8** | 0x**X+12** | `uint32_t` User Flags (Look JPAK2.0 spec at 2.1) |
39+
| 0x**X+12** | `END` | `uint32_t` JSON FileTable Offset |
4040

4141
The JSON Filetable is the same, the offset is relative to the first volume. The JSON Volume Table is as follow:
4242

doc/JPAK2/README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -77,16 +77,16 @@ Example of JPAK Filesystem Table:
7777

7878
The JPAK has following structure:
7979

80-
| START | END | Description |
81-
| --------- | --------- | --------------------------------- |
82-
| 0x0 | 0x5 | JPAK2 Magic Number |
83-
| 0x5 | 0xC | Padding (0x00) |
84-
| 0xC | 0xY | Start of Files Data |
85-
| 0x**Y** | 0x**X** | JSON File Table |
86-
| 0x**X** | 0x**W** | `uint32_t` Producer ID (Look 2.1) |
87-
| 0x**X** | 0x**W** | `uint32_t` JPAK Flags (Look 2.1) |
88-
| 0x**W** | 0x**Z** | `uint32_t` User Flags (Look 2.1) |
89-
| 0x**Z** | `END` | `uint32_t` JSON FileTable Offset |
80+
| START | END | Description |
81+
| ------------ | ------------- | --------------------------------- |
82+
| 0x0 | 0x5 | JPAK2 Magic Number |
83+
| 0x5 | 0xC | Padding (0x00) |
84+
| 0xC | 0xY | Start of Files Data |
85+
| 0x**Y** | 0x**X** | JSON File Table |
86+
| 0x**X** | 0x**X+4** | `uint32_t` Producer ID (Look 2.1) |
87+
| 0x**X+4** | 0x**X+8** | `uint32_t` JPAK Flags (Look 2.1) |
88+
| 0x**X+8** | 0x**X+12** | `uint32_t` User Flags (Look 2.1) |
89+
| 0x**X+12** | `END` | `uint32_t` JSON FileTable Offset |
9090

9191
##### 2.1 JPAK / USER FLAGS and Producer ID
9292

@@ -128,4 +128,4 @@ So in `Extended Environment` we have following pieces:
128128
* `JPAK DATA STORAGE (JDS)` - The data only file storage
129129
* `JPAK META STORAGE (JMS)` - The meta storage ( filetable )
130130

131-
For more specification of Extended Mode, see Extended Mode README.md
131+
For more specification of Extended Mode, see Extended Mode\README.md

tools/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.pyc

0 commit comments

Comments
 (0)