rebindable camera settings
This commit is contained in:
parent
87fcc2b817
commit
7a217acd69
6 changed files with 102 additions and 33 deletions
|
|
@ -62,8 +62,8 @@ impl InputMap {
|
|||
}
|
||||
|
||||
fn save_to_file(&self, path: &str) -> Result<()> {
|
||||
let json = ron::ser::to_string_pretty(self, PrettyConfig::default())?;
|
||||
fs::write(path, json)?;
|
||||
let ron = ron::ser::to_string_pretty(self, PrettyConfig::default())?;
|
||||
fs::write(path, ron)?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue