rebindable camera settings

This commit is contained in:
Jim 2025-08-24 14:56:42 -04:00
parent 87fcc2b817
commit 7a217acd69
Signed by: jim
GPG key ID: 3236D2F059A7C0AC
6 changed files with 102 additions and 33 deletions

View file

@ -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(())
}