Merge branch 'next' of https://github.com/an-anime-team/an-anime-game-launcher into next
Some checks failed
Check source code / check_source_code (push) Has been cancelled

This commit is contained in:
Nikita Podvirnyi 2024-08-16 14:35:08 +02:00
commit 3e5ce19931
No known key found for this signature in database
GPG key ID: 859D416E5142AFF3
3 changed files with 18 additions and 2 deletions

View file

@ -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

View file

@ -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;

View file

@ -98,6 +98,12 @@ impl SimpleComponent for AboutDialog {
"<li>Added disabling of 2 new telemetry servers</li>",
"</ul>",
"<p>Fixed</p>",
"<ul>",
"<li>Create cache folder if it doesn't exist</li>",
"</ul>",
"<p>Changed</p>",
"<ul>",