Skip to content

Commit

Permalink
change input confgen to always generate input file, this is a tempora…
Browse files Browse the repository at this point in the history
…ry fix before inputs are set in options menu to prevent issues with steam updates
  • Loading branch information
cdsupina committed Jun 4, 2024
1 parent a1d7bb6 commit d3476ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 2 additions & 0 deletions src/options/input.ron
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@
(MoveLeft, DPadLeft),
(MoveRight, DPadRight),
(SlotOneAbility, RightTrigger),
(SlotOneAbility, South),
(SlotTwoAbility, LeftTrigger),
(SlotTwoAbility, East),
],
)
10 changes: 4 additions & 6 deletions src/options/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,10 @@ macro_rules! confgen {
$({
let default = include_bytes!($filename);
let file_path = conf_dir.join($filename);
if !file_path.is_file() {
let mut file = File::create(file_path)
.expect(concat!("Confgen failed: could not create config file ", $filename, "."));
file.write_all(default)
.expect(concat!("Confgen failed: could not write config file ", $filename, "."));
}
let mut file = File::create(file_path)
.expect(concat!("Confgen failed: could not create config file ", $filename, "."));
file.write_all(default)
.expect(concat!("Confgen failed: could not write config file ", $filename, "."));
})*
}
}
Expand Down

0 comments on commit d3476ed

Please sign in to comment.