Skip to content

Commit

Permalink
add logging for #73
Browse files Browse the repository at this point in the history
  • Loading branch information
dmadisetti committed May 31, 2024
1 parent f5d2a4f commit dfede11
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/interface/steam_cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ use std::process;

use std::io::{BufRead, BufReader, Write};

use crate::util::log::log;

pub struct SteamCmd {
iter: std::io::Split<BufReader<process::ChildStdout>>,
stdin: process::ChildStdin,
Expand Down Expand Up @@ -39,10 +41,12 @@ impl SteamCmd {
let mut cmd = SteamCmd::with_args_and_seperator(args, 0x1b)?;

// Send start up data I guess yeah?
cmd.next();
cmd.next();
cmd.next();
cmd.next();
log!("Attempting to scrub past entry screen");
log!(0, cmd.next());
log!(1, cmd.next());
log!(2, cmd.next());
log!(3, cmd.next());
log!("Scrub successful");

Ok(cmd)
}
Expand Down

0 comments on commit dfede11

Please sign in to comment.