mirror of
https://github.com/redstrate/Physis.git
synced 2025-04-22 12:47:45 +00:00
Fix path calculation in SqpkFileOperationData, again
This should make retail patches work correctly
This commit is contained in:
parent
d8fae2f822
commit
4d23bf9f08
1 changed files with 2 additions and 2 deletions
|
@ -269,13 +269,13 @@ struct SqpkFileOperationData {
|
|||
|
||||
// Note: counts the \0 at the end... for some reason
|
||||
#[br(temp)]
|
||||
#[bw(calc = get_string_len(path) as u32 + 1)]
|
||||
#[bw(calc = get_string_len(path) as u32)]
|
||||
path_length: u32,
|
||||
|
||||
#[brw(pad_after = 2)]
|
||||
expansion_id: u16,
|
||||
|
||||
#[br(count = path_length - 1)]
|
||||
#[br(count = path_length)]
|
||||
#[br(map = read_string)]
|
||||
#[bw(map = write_string)]
|
||||
path: String,
|
||||
|
|
Loading…
Add table
Reference in a new issue