1
Fork 0
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:
Joshua Goins 2024-07-18 13:57:12 -04:00
parent d8fae2f822
commit 4d23bf9f08

View file

@ -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,