diff --git a/src/settings.rs b/src/settings.rs index ff65465..a473ede 100644 --- a/src/settings.rs +++ b/src/settings.rs @@ -236,6 +236,8 @@ impl Settings { source: e, })?; + file.flush()?; + Ok(()) } pub fn get_log_level(&self) -> LevelFilter { diff --git a/src/vrcx/windows.rs b/src/vrcx/windows.rs index 34f2012..f5913c6 100644 --- a/src/vrcx/windows.rs +++ b/src/vrcx/windows.rs @@ -41,6 +41,8 @@ impl VrcxStartup { self.startup_path.as_ref() } + // These shortcuts apparently trigger: [lnk/lib.rs:355] The ExtraData length is invalid. + // However, all the data *we* read is before that section, so *we're* probably okay, and Windows hasn't complained *yet.* pub fn create_shortcut(&self) -> Result<(), AppError> { let startup_path = self .startup_path