1
Fork 0
mirror of https://github.com/redstrate/Physis.git synced 2025-04-21 20:27:46 +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 // Note: counts the \0 at the end... for some reason
#[br(temp)] #[br(temp)]
#[bw(calc = get_string_len(path) as u32 + 1)] #[bw(calc = get_string_len(path) as u32)]
path_length: u32, path_length: u32,
#[brw(pad_after = 2)] #[brw(pad_after = 2)]
expansion_id: u16, expansion_id: u16,
#[br(count = path_length - 1)] #[br(count = path_length)]
#[br(map = read_string)] #[br(map = read_string)]
#[bw(map = write_string)] #[bw(map = write_string)]
path: String, path: String,