Skip to content

Commit

Permalink
mhrbin alternate format
Browse files Browse the repository at this point in the history
  • Loading branch information
forteus19 committed Oct 19, 2023
1 parent e0f56b0 commit 0b42869
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions bot/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -461,13 +461,14 @@ impl Macro {
log::debug!("num_actions: {}", num_actions);

for _ in 0..num_actions {
let format = cursor.read_u16::<LittleEndian>()?;
if format != 0x0002 {
log::error!("xpos replays not supported, because they don't store frames");
return Err(anyhow::anyhow!(
"xpos replays not supported, because they don't store frames"
));
}
// let format = cursor.read_u16::<LittleEndian>()?;
// if format != 0x0002 {
// log::error!("xpos replays not supported, because they don't store frames");
// return Err(anyhow::anyhow!(
// "xpos replays not supported, because they don't store frames"
// ));
// }
cursor.set_position(cursor.position() + 2);
let down = cursor.read_u8()? == 1;
let p1 = cursor.read_u8()? == 0;
let frame = cursor.read_u32::<LittleEndian>()?;
Expand Down

0 comments on commit 0b42869

Please sign in to comment.