Added some a potential way forward with config and add/move/nothing

This commit is contained in:
2023-07-24 22:37:13 +01:00
parent 418daae284
commit d69aa1fef3
3 changed files with 14 additions and 3 deletions

View File

@@ -74,7 +74,7 @@ impl RustDoomLauncher {
fn get_config_file_stuff(&mut self) {
self.config = match load_config(&self.config_filename) {
Ok(c) => Some(c),
Err(e) => None,
Err(_e) => None,
};
if let Some(config) = &self.config {
if let Some(iwads) = &config.iwads {
@@ -391,8 +391,7 @@ impl eframe::App for RustDoomLauncher {
iwads: Some(self.iwad_manager.selectable.clone()),
pwads: Some(self.pwad_manager.selectable.clone()),
launchers: Some(self.launcher_manager.selectable.clone()),
iwads_added_folder: None,
iwads_removed_folder: None,
..Default::default()
};
save_config(&self.config_filename, &config).unwrap();
frame.close();