Skip to content

Commit

Permalink
add mjai log to View
Browse files Browse the repository at this point in the history
  • Loading branch information
Equim-chan committed Feb 19, 2024
1 parent ef9c324 commit 4432926
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,7 @@ fn main() -> Result<()> {
player_id,

split_logs: split_raw_logs.as_deref(),
mjai_log: &events,
lang: lang_value.get_name(),
};
log!("writing output...");
Expand Down
2 changes: 2 additions & 0 deletions src/render.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use crate::opts::Engine;
use crate::review::Review;
use convlog::tenhou::{GameLength, RawPartialLog};
use convlog::Event;
use fluent_templates::FluentLoader;
use std::collections::HashMap;
use std::io::prelude::*;
Expand Down Expand Up @@ -60,6 +61,7 @@ pub struct View<'a> {
pub player_id: u8,

pub split_logs: Option<&'a [RawPartialLog<'a>]>,
pub mjai_log: &'a [Event],

pub lang: &'a str,
}
Expand Down

0 comments on commit 4432926

Please sign in to comment.