diff --git a/CHANGELOG.md b/CHANGELOG.md index c847d9a..b7c330e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Respect root `.version` file for game version parsing - Added disabling of 2 new telemetry servers +### Fixed + +- Create cache folder if it doesn't exist + ### Changed - Prioritize parsed game version over the API response diff --git a/src/main.rs b/src/main.rs index 7dd37db..8d80ebe 100644 --- a/src/main.rs +++ b/src/main.rs @@ -109,11 +109,11 @@ fn main() -> anyhow::Result<()> { // Setup custom panic handler human_panic::setup_panic!(human_panic::metadata!()); - // Create launcher folder if it isn't + // Create launcher folder if it doesn't exist. if !LAUNCHER_FOLDER.exists() { std::fs::create_dir_all(LAUNCHER_FOLDER.as_path()).expect("Failed to create launcher folder"); - // This one is kinda critical buy well, I can't do something with it + // This one is kinda critical but well, I can't do anything about it std::fs::write(FIRST_RUN_FILE.as_path(), "").expect("Failed to create .first-run file"); // Set initial launcher language based on system language @@ -125,6 +125,12 @@ fn main() -> anyhow::Result<()> { Config::update_raw(config).expect("Failed to update config"); } + // Create cache folder if it doesn't exist. + if !CACHE_FOLDER.exists() { + std::fs::create_dir_all(CACHE_FOLDER.as_path()) + .expect("Failed to create cache folder"); + } + // Force debug output let mut force_debug = false; diff --git a/src/ui/about.rs b/src/ui/about.rs index 107dbc9..1096bb7 100644 --- a/src/ui/about.rs +++ b/src/ui/about.rs @@ -98,6 +98,12 @@ impl SimpleComponent for AboutDialog { "
Fixed
", + + "Changed
", "