Skip to content

Commit

Permalink
even if sometimes we can get annoyed with our friends
Browse files Browse the repository at this point in the history
  • Loading branch information
maddymakesgames committed Mar 22, 2024
1 parent 57db0b4 commit d7d75eb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,12 @@ fn merge_saves(args: Vec<String>, verbose: bool) -> Option<()> {
save_a.merge_data(&save_b);

let out_path = &args[2];
let mut out_file = match OpenOptions::new().create(true).write(true).open(out_path) {
let mut out_file = match OpenOptions::new()
.create(true)
.truncate(true)
.write(true)
.open(out_path)
{
Ok(f) => f,
Err(ref e) => {
match e.kind() {
Expand Down

0 comments on commit d7d75eb

Please sign in to comment.