SQPK
Primitives
[StructLayout(LayoutKind.Explicit, Size = 5)]
struct SqpkChunk
{
[FieldOffset(0x0)] Uint32BE Size;
[FieldOffset(0x4)] SqpkOperation Opcode;
[FieldOffset(0x5)] SqpkPayload Payload;
}
enum SqpkOperation : byte
{
A, // Add data. Used to overwrite blocks in dat files. Can also delete old data
D, // Delete data. Used to delete blocks (overwrite with 0x00) in dat files
E, // Expand data. Used to insert empty blocks into dat files
F, // File operations. Adding files, deleting files, etc.
H, // Header Update. Updates headers of dat or index files
I, // Index Add/Delete. Present in patch files but unused
X, // Patch Info. Present in patch files but unused
T, // Target Info. Present in patch files but only one field is used
}Types
Type A - Add Data
Type D - Delete Data
Type E - Expand Data
Type F - File Operation
Pseudocode
Type H - Header Update
Pseudocode
Type I - Index Update
Type X - Patch Info
Type T - Target Info
Last updated
Was this helpful?