diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 11cdcfe..a0d8a13 100644 --- a/src/main.rs +++ b/src/main.rs @@ -19,6 +19,7 @@ pub const CONFIG_FILE: &str = "config.ron"; fn main() { let (mut rl, thread) = raylib::init().resizable().title("Hello there!").build(); rl.set_target_fps(120); + rl.set_exit_key(None); // Load the configuration file, if available. let config = match Config::from_file(CONFIG_FILE) { @@ -30,7 +31,9 @@ fn main() { let config = Config::default(); if err.kind() == io::ErrorKind::NotFound { println!("Could not find a configuration file. Creating default."); - config.write_file(CONFIG_FILE); + config + .write_file(CONFIG_FILE) + .expect("Could not write config file."); } else { println!("Could not read configuration file: {}", err); println!("Using defaults for this run."); |
