mirror of
https://codeberg.org/demostf/parser.git
synced 2026-06-03 10:14:06 +02:00
Merge pull request 'Fix custom_file field in RawPlayerInfo by adjusting padding' (#3) from seercat/demo-parser:seercat/playerinfo-padding into master
Reviewed-on: https://codeberg.org/demostf/parser/pulls/3
This commit is contained in:
commit
9403297c30
1 changed files with 3 additions and 3 deletions
|
|
@ -16,9 +16,9 @@ struct RawPlayerInfo {
|
|||
pub is_fake_player: u8,
|
||||
pub is_hl_tv: u8,
|
||||
pub is_replay: u8,
|
||||
pub more_extra: u8,
|
||||
pub custom_file: [u32; 4],
|
||||
pub files_downloaded: u32,
|
||||
pub more_extra: u8,
|
||||
}
|
||||
|
||||
#[derive(BitWrite, Debug, Clone, Default)]
|
||||
|
|
@ -34,9 +34,9 @@ pub struct PlayerInfo {
|
|||
pub is_fake_player: u8,
|
||||
pub is_hl_tv: u8,
|
||||
pub is_replay: u8,
|
||||
pub more_extra: u8,
|
||||
pub custom_file: [u32; 4],
|
||||
pub files_downloaded: u32,
|
||||
pub more_extra: u8,
|
||||
}
|
||||
|
||||
impl From<RawPlayerInfo> for PlayerInfo {
|
||||
|
|
@ -53,9 +53,9 @@ impl From<RawPlayerInfo> for PlayerInfo {
|
|||
is_fake_player: raw.is_fake_player,
|
||||
is_hl_tv: raw.is_hl_tv,
|
||||
is_replay: raw.is_replay,
|
||||
more_extra: raw.more_extra,
|
||||
custom_file: raw.custom_file,
|
||||
files_downloaded: raw.files_downloaded,
|
||||
more_extra: raw.more_extra,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue