Mages Engine (Steins;Gate Steam, Steins;Gate 0, Steins;Gate Elite, Chaos;Child etc.) MPK UnPack & RePack. Fixed mpk creation with correct mpk structure.
The header of the MPK is
| Name | Size | Values |
|---|---|---|
| IDENT | 4 bytes | "MPK"\0 |
| Null Bytes | 2 bytes | \0\0 |
| Two | 2 bytes | 0x2 |
| Name | Size |
|---|---|
| File count | 8 bytes |
| Null Bytes | 6 * 8 bytes |
Repeat this File count times
| Name | Size |
|---|---|
| isCompressed | 4 bytes |
| Index | 4 bytes |
| Position | 8 bytes |
| Size in File | 8 bytes |
| Uncompressed Size (if not compressed it's the same as Size) | 8 bytes |
| Null terminated file name | 224 bytes |
Repeat this File count times
| Name | Size |
|---|---|
| Raw data | Size bytes from respective info structure |